Pillow/Tests/test_image_tobytes.py

9 lines
190 B
Python
Raw Normal View History

from .helper import PillowTestCase, hopper
class TestImageToBytes(PillowTestCase):
2014-06-10 13:10:47 +04:00
def test_sanity(self):
data = hopper().tobytes()
self.assertIsInstance(data, bytes)