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