From 0038a648a74236e33144cb8c3bce42a0873ec44f Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Thu, 22 Dec 2016 21:50:44 +0100 Subject: new command: edit --- tests/test_collection.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_collection.py') diff --git a/tests/test_collection.py b/tests/test_collection.py index ccd535f..9522ab8 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -56,6 +56,13 @@ class testCollectionLoading(unittest.TestCase): for m in matches: self.assertIsInstance(m, lesana.Entry) + def test_entry_from_uid(self): + self.collection = lesana.Collection('tests/data/simple') + entry = self.collection.entry_from_uid( + '11189ee47ddf4796b718a483b379f976' + ) + self.assertEqual(entry.uid, '11189ee47ddf4796b718a483b379f976') + class testEntries(unittest.TestCase): -- cgit v1.2.3