Show More
@@ -92,7 +92,7 b' class FilesTest(NotebookTestBase):' | |||||
92 | r = requests.get(url_path_join(base, 'files', 'test.bin')) |
|
92 | r = requests.get(url_path_join(base, 'files', 'test.bin')) | |
93 | self.assertEqual(r.status_code, 200) |
|
93 | self.assertEqual(r.status_code, 200) | |
94 | self.assertEqual(r.headers['content-type'], 'application/octet-stream') |
|
94 | self.assertEqual(r.headers['content-type'], 'application/octet-stream') | |
95 |
self.assert |
|
95 | self.assertTrue(r.content[0] == 255 or r.content[0] == b'\xff') | |
96 | self.assertEqual(len(r.content), 6) |
|
96 | self.assertEqual(len(r.content), 6) | |
97 |
|
97 | |||
98 | r = requests.get(url_path_join(base, 'files', 'test.txt')) |
|
98 | r = requests.get(url_path_join(base, 'files', 'test.txt')) |
General Comments 0
You need to be logged in to leave comments.
Login now