Fix issue with uppercase in the domain name.

This commit is contained in:
Nicholas Staples
2016-04-06 16:45:35 +01:00
parent 2ae33f0179
commit 2352b0f80d
2 changed files with 5 additions and 2 deletions

View File

@@ -57,6 +57,8 @@ def _gen_mock_field(x):
@pytest.mark.parametrize("email", [
'test@gov.uk',
'test@GOV.UK',
'test@gov.uK',
'test@test.test.gov.uk',
'test@test.gov.uk',
'test@mod.uk',
@@ -71,7 +73,8 @@ def _gen_mock_field(x):
'test@nhs.net',
'test@gov.nhs.net',
'test@police.uk',
'test@gov.police.uk'
'test@gov.police.uk',
'test@GOV.PoliCe.uk',
])
def test_valid_list_of_white_list_email_domains(app_, email):
with app_.test_request_context():