2014-06-04 11:11:22 +04:00
|
|
|
from helper import unittest, lena
|
2014-06-03 23:38:56 +04:00
|
|
|
|
|
|
|
|
|
|
|
class TestImageToBytes(unittest.TestCase):
|
|
|
|
|
|
|
|
def test_sanity(self):
|
|
|
|
data = lena().tobytes()
|
|
|
|
self.assertTrue(isinstance(data, bytes))
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|
|
|
|
|
|
|
|
# End of file
|