summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2016-12-22 21:50:44 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2016-12-22 21:50:44 +0100
commit0038a648a74236e33144cb8c3bce42a0873ec44f (patch)
tree0061cacde856ea0761bd6883e7b31475a1db1a3d /tests
parent5004001be342f46dd694d539a9a4b8bfbddfd69a (diff)
new command: edit
Diffstat (limited to 'tests')
-rw-r--r--tests/test_collection.py7
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):