aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-01-14 10:41:14 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-01-14 10:41:14 +0100
commite5d30f21c99bec9a8eccd881e5e83088b9378454 (patch)
treee1e247dc07ac5de1e89111387d4009d2b64cced1 /tests
parent1ab41af4cdce777c3f5b0e0f985e5846999b9010 (diff)
Saner management of wrong uids
Diffstat (limited to 'tests')
-rw-r--r--tests/test_collection.py5
1 files changed, 5 insertions, 0 deletions
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):