Pillow/test/test_image_tobytes.py

14 lines
256 B
Python
Raw Normal View History

2014-06-10 04:36:40 +04:00
from test.helper import unittest, lena
class TestImageToBytes(unittest.TestCase):
def test_sanity(self):
data = lena().tobytes()
self.assertTrue(isinstance(data, bytes))
if __name__ == '__main__':
unittest.main()
# End of file