2
0
mirror of https://github.com/jupyter/notebook.git synced 2025-02-11 12:30:51 +08:00

Merge pull request from takluyver/sort-test-dir-contents

Sort directory contents in test before assertion
This commit is contained in:
Matthias Bussonnier 2014-09-05 19:35:57 -07:00
commit 3dc94d6911

View File

@ -188,7 +188,7 @@ class TestContentsManager(TestCase):
dir_model = cm.get_model(path)
self.assertEqual(
dir_model['content'],
sorted(dir_model['content'], key=lambda x: x['name']),
[symlink_model, file_model],
)