diff options
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r-- | tests/test_collection.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): |