diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-11-03 06:14:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-11-03 06:14:02 +0000 |
commit | b11507eda86bd49d4801df6c6f2b5700f15087d7 (patch) | |
tree | a387ba9ae22d2409e2eada620488a37f0bc36d2b /tests/identify_test.py | |
parent | Adding upstream version 1.5.5. (diff) | |
download | identify-b11507eda86bd49d4801df6c6f2b5700f15087d7.tar.xz identify-b11507eda86bd49d4801df6c6f2b5700f15087d7.zip |
Adding upstream version 1.5.7.upstream/1.5.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/identify_test.py')
-rw-r--r-- | tests/identify_test.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/identify_test.py b/tests/identify_test.py index a80c401..8e00f60 100644 --- a/tests/identify_test.py +++ b/tests/identify_test.py @@ -105,7 +105,7 @@ def test_tags_from_path_plist_text(tmpdir): x = tmpdir.join('t.plist') x.write( '<?xml version="1.0" encoding="UTF-8"?>\n' - '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n' + '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n' # noqa: E501 '<plist version="1.0">\n' '<dict>\n' '\t<key>Last Login Name</key>\n' @@ -179,12 +179,14 @@ def test_tags_from_interpreter(interpreter, expected): (b'', True), ('éóñəå ⊂(◉‿◉)つ(ノ≥∇≤)ノ'.encode('utf8'), True), (r'¯\_(ツ)_/¯'.encode('utf8'), True), - ('♪┏(・o・)┛♪┗ ( ・o・) ┓♪┏ ( ) ┛♪┗ (・o・ ) ┓♪┏(・o・)┛♪'.encode('utf8'), True), + ('♪┏(・o・)┛♪┗ ( ・o・) ┓♪┏ ( ) ┛♪┗ (・o・ ) ┓♪'.encode('utf8'), True), ('éóñå'.encode('latin1'), True), (b'hello world\x00', False), - (b'\x7f\x45\x4c\x46\x02\x01\x01', False), # first few bytes of /bin/bash - (b'\x43\x92\xd9\x0f\xaf\x32\x2c', False), # some /dev/urandom output + # first few bytes of /bin/bash + (b'\x7f\x45\x4c\x46\x02\x01\x01', False), + # some /dev/urandom output + (b'\x43\x92\xd9\x0f\xaf\x32\x2c', False), ), ) def test_is_text(data, expected): |