|
|
@ -35,7 +35,7 @@ class ChangeEmailTestCase(BaseTestCase): |
|
|
|
|
|
|
|
payload = {"email": "[email protected]"} |
|
|
|
r = self.client.post("/accounts/change_email/foo/", payload) |
|
|
|
self.assertContains(r, "[email protected] is not available") |
|
|
|
self.assertContains(r, "[email protected] is already registered") |
|
|
|
|
|
|
|
self.alice.refresh_from_db() |
|
|
|
self.assertEqual(self.alice.email, "[email protected]") |