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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index e5c77e501..ec1ca3d17 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -1501,6 +1501,11 @@ class OperationSearchTest(TestCase, OperationInitTest):
response = c.get(reverse('get-operation'), {'search_vector': 'château'})
result = json.loads(response.content)
self.assertEqual(result['recordsTotal'], 1)
+ # test search with inappropriate minus sign
+ response = c.get(reverse('get-operation'),
+ {'search_vector': 'chaTEAU - '})
+ result = json.loads(response.content)
+ self.assertEqual(result['recordsTotal'], 1)
def test_complex_search_vector(self):
c = Client()