Prove that the previous commit is working
This commit is contained in:
parent
8ff57c5803
commit
3aa76cc58e
BIN
Binary_data_in_Exif_Comment.jpg
Normal file
BIN
Binary_data_in_Exif_Comment.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
@ -174,3 +174,10 @@ class TestGetMeta(unittest.TestCase):
|
|||||||
self.assertIn(b'genre: Python', stdout)
|
self.assertIn(b'genre: Python', stdout)
|
||||||
self.assertIn(b'i am a : various comment', stdout)
|
self.assertIn(b'i am a : various comment', stdout)
|
||||||
self.assertIn(b'artist: jvoisin', stdout)
|
self.assertIn(b'artist: jvoisin', stdout)
|
||||||
|
|
||||||
|
class TestControlCharInjection(unittest.TestCase):
|
||||||
|
def test_jpg(self):
|
||||||
|
proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/control_chars.jpg'],
|
||||||
|
stdout=subprocess.PIPE)
|
||||||
|
stdout, _ = proc.communicate()
|
||||||
|
self.assertIn(b'Comment: GQ\n', stdout)
|
||||||
|
Loading…
Reference in New Issue
Block a user