Show More
@@ -141,3 +141,17 b' class TestMetadata(TestCase):' | |||||
141 | self.assertEqual(md.gistid, u'21341231') |
|
141 | self.assertEqual(md.gistid, u'21341231') | |
142 | self.assertEqual(md.authors, authors) |
|
142 | self.assertEqual(md.authors, authors) | |
143 |
|
143 | |||
|
144 | class TestOutputs(TestCase): | |||
|
145 | def test_binary_png(self): | |||
|
146 | out = new_output(output_png=b'\x89PNG\r\n\x1a\n') | |||
|
147 | ||||
|
148 | def test_b64b6tes_png(self): | |||
|
149 | out = new_output(output_png=b'iVBORw0KG') | |||
|
150 | ||||
|
151 | def test_binary_jpeg(self): | |||
|
152 | out = new_output(output_jpeg=b'\xff\xd8') | |||
|
153 | ||||
|
154 | def test_b64b6tes_jpeg(self): | |||
|
155 | out = new_output(output_jpeg=b'/9') | |||
|
156 | ||||
|
157 |
General Comments 0
You need to be logged in to leave comments.
Login now