Merge pull request #304 from alphagov/add_valid_email_regexes

Add valid email regexes
This commit is contained in:
NIcholas Staples
2016-03-21 09:54:33 +00:00
10 changed files with 76 additions and 13 deletions

View File

@@ -82,7 +82,8 @@ def test_should_return_200_when_email_is_not_gov_uk(app_,
'password': 'validPassword!'})
assert response.status_code == 200
assert 'Enter a gov.uk email address' in response.get_data(as_text=True)
print(response.get_data(as_text=True))
assert 'Enter a central government email address' in response.get_data(as_text=True)
def test_should_add_user_details_to_session(app_,