From 246bd765ee65f9c1781eabf7996dc6fca6f0cade 2014-02-05 23:41:28 From: Brian E. Granger Date: 2014-02-05 23:41:28 Subject: [PATCH] Fixing test_files tests. --- diff --git a/IPython/html/tests/test_files.py b/IPython/html/tests/test_files.py index 23cc8fa..0653bfd 100644 --- a/IPython/html/tests/test_files.py +++ b/IPython/html/tests/test_files.py @@ -42,13 +42,13 @@ class FilesTest(NotebookTestBase): r.raise_for_status() self.assertEqual(r.text, 'foo') r = requests.get(url_path_join(url, 'files', d, '.foo')) - self.assertEqual(r.status_code, 403) + self.assertEqual(r.status_code, 404) for d in hidden: path = pjoin(nbdir, d.replace('/', os.sep)) for foo in ('foo', '.foo'): r = requests.get(url_path_join(url, 'files', d, foo)) - self.assertEqual(r.status_code, 403) + self.assertEqual(r.status_code, 404) def test_old_files_redirect(self): """pre-2.0 'files/' prefixed links are properly redirected"""