diff options
Diffstat (limited to 'archaeological_warehouse/tests.py')
-rw-r--r-- | archaeological_warehouse/tests.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/archaeological_warehouse/tests.py b/archaeological_warehouse/tests.py index e18d56fae..347382e75 100644 --- a/archaeological_warehouse/tests.py +++ b/archaeological_warehouse/tests.py @@ -598,6 +598,21 @@ class ContainerTest(FindInit, TestCase): self.assertEqual(response.status_code, 200) c = json.loads(response.content.decode()) self.assertEqual(len(c), 1) + # inverse position + full_path = "{} 35000 {} Test".format(ct2.label, ct.label) + response = client.get(url, {"term": full_path}) + self.assertEqual(response.status_code, 200) + c = json.loads(response.content.decode()) + self.assertEqual(len(c), 1) + # unaccent + ct2_label = ct2.label + assert "e" in ct2_label + ct2_label = ct2_label.replace("e", "é") + full_path = "{} 35000 {} Test".format(ct2_label, ct.label) + response = client.get(url, {"term": full_path}) + self.assertEqual(response.status_code, 200) + c = json.loads(response.content.decode()) + self.assertEqual(len(c), 1) def test_form_creation(self): data = { |