Sort directory contents in test before assertion

Should fix recent test failures, but I can't replicate failure on my
computer, so it's not clear that it's fixed.
pull/37/head
Thomas Kluyver 12 years ago
parent a855d3c96d
commit fa6056e9ed

@ -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],
)

Loading…
Cancel
Save