Merge pull request #6419 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],
)