TEST: Allow greater or equal modified_date on rename.

This commit is contained in:
Scott Sanderson 2015-03-24 13:17:24 -04:00
parent 72aeb78aaf
commit e8fd4ba9c2

View File

@ -279,7 +279,10 @@ class TestContentsManager(TestCase):
new_path = 'renamed.ipynb'
cm.rename(path, new_path)
renamed = cm.get(new_path)
self.assertEqual(renamed['last_modified'], saved['last_modified'])
self.assertGreaterEqual(
renamed['last_modified'],
saved['last_modified'],
)
def test_get(self):
cm = self.contents_manager