diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-11-03 06:14:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-11-03 06:14:07 +0000 |
commit | fb30f8c3416b99ff543094ffa977802ec5eb4f0e (patch) | |
tree | c74d32a6a68c3fd6267399d0ded737c39a5ac4e4 /tests/identify_test.py | |
parent | Releasing debian version 1.5.5-1. (diff) | |
download | identify-fb30f8c3416b99ff543094ffa977802ec5eb4f0e.tar.xz identify-fb30f8c3416b99ff543094ffa977802ec5eb4f0e.zip |
Merging upstream version 1.5.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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): |