diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-06-04 22:49:54 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-06-04 22:49:54 +0200 |
commit | 96465262f72b1b4230513e978d8412d0affc75a1 (patch) | |
tree | 8239326b2cd8423140c796b8d65831d4cace5aee /tests | |
parent | 9d6c7b5ef7f651a64e27db3d676a3a0153a85e7b (diff) |
Search for all entries
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_collection.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py index 891a439..5c326e3 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -87,6 +87,14 @@ class testCollection(unittest.TestCase): matches = list(self.collection.get_all_search_results()) self.assertEqual(matches, []) + def test_all_entries(self): + self.collection = lesana.Collection('tests/data/simple') + res = self.collection.get_all_documents() + matches = list(res) + self.assertEqual(len(matches), 3) + 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( |