aboutsummaryrefslogtreecommitdiff
path: root/tests/test_collection.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-08-19 18:50:29 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-08-19 18:50:48 +0200
commit851914e5da250e6a38e83bccf182ab8af1db0d32 (patch)
tree31fcfd3a56cde45e6f5d6014ddc934652476e68c /tests/test_collection.py
parentbbb08c63c39e9e91c6044dcffe71dceba3cbef75 (diff)
Enable wildcard searches
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r--tests/test_collection.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py
index 875a35a..84f0a7a 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -80,6 +80,15 @@ class testCollection(unittest.TestCase):
for m in matches:
self.assertIsInstance(m, lesana.Entry)
+ def test_search_wildcard(self):
+ self.collection = lesana.Collection('tests/data/simple')
+ self.collection.start_search('Ite*')
+ res = self.collection.get_search_results()
+ matches = list(res)
+ self.assertEqual(len(matches), 2)
+ for m in matches:
+ self.assertIsInstance(m, lesana.Entry)
+
def test_search_non_init(self):
self.collection = lesana.Collection('tests/data/simple')
matches = list(self.collection.get_search_results())