diff --git a/src/postorius/tests/mailman_api_tests/test_list_bans.py b/src/postorius/tests/mailman_api_tests/test_list_bans.py index 9c69b18..fdf2af1 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_bans.py +++ b/src/postorius/tests/mailman_api_tests/test_list_bans.py @@ -58,16 +58,9 @@ response = self.client.get(self.url) self.assertEqual(response.status_code, 200) self.assertTrue('addban_form' in response.context) - try: - # Django 1.10 - self.assertContains( - response, '') - except AssertionError: - # Django < 1.10 XXX: remove when support for 1.9 is dropped - self.assertContains( - response, '') + self.assertContains( + response, 'Ban email')