From e5d30f21c99bec9a8eccd881e5e83088b9378454 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sat, 14 Jan 2017 10:41:14 +0100 Subject: Saner management of wrong uids --- tests/test_collection.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_collection.py') diff --git a/tests/test_collection.py b/tests/test_collection.py index a37a696..a197237 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -105,6 +105,11 @@ class testCollection(unittest.TestCase): self.assertEqual(len(cm.output), 1) self.assertIn("non_existing_file", cm.output[0]) + def test_get_entry_missing_uid(self): + self.collection = lesana.Collection('tests/data/simple') + entry = self.collection.entry_from_uid('this is not an uid') + self.assertIsNone(entry) + class testEntries(unittest.TestCase): def setUp(self): -- cgit v1.2.3