diff --git a/input/tests/views.py b/input/tests/views.py index 9bd961d..4cbd3a5 100644 --- a/input/tests/views.py +++ b/input/tests/views.py @@ -158,9 +158,5 @@ class TermsConsentViewTests(AnonymousViewTestCase): resp = request(self, 'extern', data=payload) # Expect to remain on step 2 with required field error - self.assertEqual(resp.status_code, 200) self.assertNotContains(resp, 'Deine Anfrage wurde gesendet.') - self.assertRegex( - resp.content.decode(), - r'(Dieses Feld ist erforderlich|This field is required\.)' - ) + self.assertContains(resp, 'Dieses Feld ist zwingend erforderlich.') \ No newline at end of file