Show More
@@ -40,7 +40,7 b' class FilesTest(NotebookTestBase):' | |||||
40 | path = pjoin(nbdir, d.replace('/', os.sep)) |
|
40 | path = pjoin(nbdir, d.replace('/', os.sep)) | |
41 | r = requests.get(url_path_join(url, 'files', d, 'foo')) |
|
41 | r = requests.get(url_path_join(url, 'files', d, 'foo')) | |
42 | r.raise_for_status() |
|
42 | r.raise_for_status() | |
43 |
self.assertEqual(r. |
|
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, 403) |
|
45 | self.assertEqual(r.status_code, 403) | |
46 |
|
46 | |||
@@ -71,15 +71,15 b' class FilesTest(NotebookTestBase):' | |||||
71 | url = url_path_join(base, 'notebooks', prefix, 'files', 'f1.txt') |
|
71 | url = url_path_join(base, 'notebooks', prefix, 'files', 'f1.txt') | |
72 | r = requests.get(url) |
|
72 | r = requests.get(url) | |
73 | self.assertEqual(r.status_code, 200) |
|
73 | self.assertEqual(r.status_code, 200) | |
74 |
self.assertEqual(r. |
|
74 | self.assertEqual(r.text, prefix + '/files/f1') | |
75 |
|
75 | |||
76 | url = url_path_join(base, 'notebooks', prefix, 'files', 'f2.txt') |
|
76 | url = url_path_join(base, 'notebooks', prefix, 'files', 'f2.txt') | |
77 | r = requests.get(url) |
|
77 | r = requests.get(url) | |
78 | self.assertEqual(r.status_code, 200) |
|
78 | self.assertEqual(r.status_code, 200) | |
79 |
self.assertEqual(r. |
|
79 | self.assertEqual(r.text, prefix + '/files/f2') | |
80 |
|
80 | |||
81 | url = url_path_join(base, 'notebooks', prefix, 'files', 'f3.txt') |
|
81 | url = url_path_join(base, 'notebooks', prefix, 'files', 'f3.txt') | |
82 | r = requests.get(url) |
|
82 | r = requests.get(url) | |
83 | self.assertEqual(r.status_code, 200) |
|
83 | self.assertEqual(r.status_code, 200) | |
84 |
self.assertEqual(r. |
|
84 | self.assertEqual(r.text, prefix + '/f3') | |
85 |
|
85 |
General Comments 0
You need to be logged in to leave comments.
Login now