Show More
@@ -288,8 +288,10 b' class APITest(NotebookTestBase):' | |||||
288 | self.assertIn('content', model) |
|
288 | self.assertIn('content', model) | |
289 | self.assertEqual(model['format'], 'base64') |
|
289 | self.assertEqual(model['format'], 'base64') | |
290 | self.assertEqual(model['type'], 'file') |
|
290 | self.assertEqual(model['type'], 'file') | |
291 | b64_data = base64.encodestring(self._blob_for_name(name)).decode('ascii') |
|
291 | self.assertEqual( | |
292 |
|
|
292 | base64.decodestring(model['content']), | |
|
293 | self._blob_for_name(name), | |||
|
294 | ) | |||
293 |
|
295 | |||
294 | # Name that doesn't exist - should be a 404 |
|
296 | # Name that doesn't exist - should be a 404 | |
295 | with assert_http_error(404): |
|
297 | with assert_http_error(404): |
General Comments 0
You need to be logged in to leave comments.
Login now