Пример #1
0
 def test_peek_format(self, format, expected_format):
     buf = BytesIO()
     Image.new("RGB", (100, 100)).save(buf, format)
     assert peek_image_format(buf) == expected_format
Пример #2
0
 def check(self, format, expected_format):
     buf = BytesIO()
     Image.new('RGB', (100, 100)).save(buf, format)
     eq_(peek_image_format(buf), expected_format)
Пример #3
0
 def check(self, format, expected_format):
     buf = BytesIO()
     Image.new('RGB', (100, 100)).save(buf, format)
     eq_(peek_image_format(buf), expected_format)