Fix tests

This commit is contained in:
Skia
2016-11-06 11:36:54 +01:00
parent 59f5917b8c
commit 20ff409547
3 changed files with 13 additions and 11 deletions

View File

@ -161,7 +161,7 @@ class UserRegistrationTest(TestCase):
})
response = c.post(reverse('core:login'), {'username': 'gcarlier', 'password': 'guy'})
self.assertTrue(response.status_code == 200)
self.assertTrue('<ul class="errorlist nonfield">' in str(response.content))
self.assertTrue("""<p>Votre nom d\\'utilisateur et votre mot de passe ne correspondent pas. Merci de r\\xc3\\xa9essayer.</p>""" in str(response.content))
class PageHandlingTest(TestCase):
def setUp(self):