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