diff --git a/src/tests/test_views.py b/src/tests/test_views.py index 7632192..68dbc56 100644 --- a/src/tests/test_views.py +++ b/src/tests/test_views.py @@ -38,16 +38,4 @@ class AnimalTest(TestCase): self.assertEqual(response.status_code, 200) # Check our user is logged in self.assertEqual(str(response.context['user']), 'testuser0') - self.assertContains(response, "Max") - self.assertContains(response, "Mia-Mo") - - """Allows Max to be present, has to find Mia-Mo""" - response = self.client.post(reverse('library:search'), data={'q': "Mia-Mo Michael Müller"}) - self.assertEqual(response.status_code, 200) - self.assertContains(response, "Mia-Mo") - - """Has to find Mia-Mo and not Max""" - response = self.client.post(reverse('library:search'), {'q': "Mia-Mo"}) - self.assertEqual(response.status_code, 200) - self.assertContains(response, "Mia-Mo") - self.assertNotContains(response, "Max") \ No newline at end of file + self.assertContains(response, "Rat1")