Commit 8e87ad58 authored by Michal Čihař's avatar Michal Čihař

Simplify code, we do not support Django 1.5 anymore

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent d49347e3
......@@ -167,12 +167,7 @@ class RegistrationTest(TestCase, RegistrationTestMixin):
)
self.assertContains(
response,
'Enter'
)
# Error message has changed in Django 1.5
self.assertTrue(
'Enter a valid e-mail address.' in response.content
or 'Enter a valid email address.' in response.content
'Enter a valid email address.'
)
def test_spam(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment