Show More
@@ -108,9 +108,9 b' class APITest(NotebookTestBase):' | |||||
108 | ] |
|
108 | ] | |
109 | hidden_dirs = ['.hidden', '__pycache__'] |
|
109 | hidden_dirs = ['.hidden', '__pycache__'] | |
110 |
|
110 | |||
111 | dirs = uniq_stable([d for (d,n) in dirs_nbs]) |
|
111 | dirs = uniq_stable([py3compat.cast_unicode(d) for (d,n) in dirs_nbs]) | |
112 | del dirs[0] # remove '' |
|
112 | del dirs[0] # remove '' | |
113 | top_level_dirs = {d.split('/')[0] for d in dirs} |
|
113 | top_level_dirs = {normalize('NFC', d.split('/')[0]) for d in dirs} | |
114 |
|
114 | |||
115 | def setUp(self): |
|
115 | def setUp(self): | |
116 | nbdir = self.notebook_dir.name |
|
116 | nbdir = self.notebook_dir.name | |
@@ -171,7 +171,7 b' class APITest(NotebookTestBase):' | |||||
171 |
|
171 | |||
172 | def test_list_dirs(self): |
|
172 | def test_list_dirs(self): | |
173 | dirs = dirs_only(self.nb_api.list().json()) |
|
173 | dirs = dirs_only(self.nb_api.list().json()) | |
174 | dir_names = {d['name'] for d in dirs} |
|
174 | dir_names = {normalize('NFC', d['name']) for d in dirs} | |
175 | self.assertEqual(dir_names, self.top_level_dirs) # Excluding hidden dirs |
|
175 | self.assertEqual(dir_names, self.top_level_dirs) # Excluding hidden dirs | |
176 |
|
176 | |||
177 | def test_list_nonexistant_dir(self): |
|
177 | def test_list_nonexistant_dir(self): |
General Comments 0
You need to be logged in to leave comments.
Login now