Commit 4a2a565f authored by Michal Čihař's avatar Michal Čihař

Better method name

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 158b5815
......@@ -62,7 +62,7 @@ REGISTRATION_DATA = {
class RegistrationTest(TestCase):
def assertRegistration(self):
def assert_registration(self):
# Check registration mail
self.assertEqual(len(mail.outbox), 1)
self.assertEqual(
......@@ -108,7 +108,7 @@ class RegistrationTest(TestCase):
self.assertRedirects(response, reverse('email-sent'))
# Confirm account
self.assertRegistration()
self.assert_registration()
# Set password
response = self.client.post(
......@@ -147,7 +147,7 @@ class RegistrationTest(TestCase):
)
self.assertRedirects(response, reverse('email-sent'))
self.assertRegistration()
self.assert_registration()
def test_wrong_username(self):
data = REGISTRATION_DATA.copy()
......
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