##// END OF EJS Templates
get bin test file to pass. (2nd try)
Manuel Riel -
Show More
@@ -91,7 +91,7 b' class FilesTest(NotebookTestBase):'
91 r = requests.get(url_path_join(base, 'files', 'test.bin'))
91 r = requests.get(url_path_join(base, 'files', 'test.bin'))
92 self.assertEqual(r.status_code, 200)
92 self.assertEqual(r.status_code, 200)
93 self.assertEqual(r.headers['content-type'], 'application/octet-stream')
93 self.assertEqual(r.headers['content-type'], 'application/octet-stream')
94 self.assertEqual(r.content, 'X50+\n')
94 self.assertEqual(r.content, b'X50+\n')
95
95
96 r = requests.get(url_path_join(base, 'files', 'test.txt'))
96 r = requests.get(url_path_join(base, 'files', 'test.txt'))
97 self.assertEqual(r.status_code, 200)
97 self.assertEqual(r.status_code, 200)
General Comments 0
You need to be logged in to leave comments. Login now