Show More
@@ -42,13 +42,13 b' class FilesTest(NotebookTestBase):' | |||||
42 | r.raise_for_status() |
|
42 | r.raise_for_status() | |
43 | self.assertEqual(r.text, 'foo') |
|
43 | self.assertEqual(r.text, 'foo') | |
44 | r = requests.get(url_path_join(url, 'files', d, '.foo')) |
|
44 | r = requests.get(url_path_join(url, 'files', d, '.foo')) | |
45 |
self.assertEqual(r.status_code, 40 |
|
45 | self.assertEqual(r.status_code, 404) | |
46 |
|
46 | |||
47 | for d in hidden: |
|
47 | for d in hidden: | |
48 | path = pjoin(nbdir, d.replace('/', os.sep)) |
|
48 | path = pjoin(nbdir, d.replace('/', os.sep)) | |
49 | for foo in ('foo', '.foo'): |
|
49 | for foo in ('foo', '.foo'): | |
50 | r = requests.get(url_path_join(url, 'files', d, foo)) |
|
50 | r = requests.get(url_path_join(url, 'files', d, foo)) | |
51 |
self.assertEqual(r.status_code, 40 |
|
51 | self.assertEqual(r.status_code, 404) | |
52 |
|
52 | |||
53 | def test_old_files_redirect(self): |
|
53 | def test_old_files_redirect(self): | |
54 | """pre-2.0 'files/' prefixed links are properly redirected""" |
|
54 | """pre-2.0 'files/' prefixed links are properly redirected""" |
General Comments 0
You need to be logged in to leave comments.
Login now