summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index 3f659ef3b..b5680a6fd 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -1814,6 +1814,18 @@ class OperationSearchTest(TestCase, OperationInitTest):
self._test_search(c, search_name_q, lbl, 1,
"Facet search with = and | characters")
+ def test_search_with_asterisk_inside_names(self):
+ c = Client()
+ c.login(username=self.username, password=self.password)
+ ope = self.operations[0]
+ ope_type = ope.operation_type
+ ope_type.label = 'label*with*asterisk'
+ ope_type.save()
+ search_name_q = str(pgettext("key for text search", u"type"))
+ nb = models.Operation.objects.filter(operation_type=ope_type).count()
+ self._test_search(c, search_name_q, ope_type.label, nb,
+ "Facet search with * characters")
+
def test_hierarchic_search(self):
ope = self.operations[1]
c = Client()