Make whitespace stripping work for whitelists too

It’s a bit hacky, but it fixes a potential issue for users.

Code adapted from:
2c34f678ab
This commit is contained in:
Chris Hill-Scott
2017-12-11 16:22:37 +00:00
parent d0d230f119
commit a8829cd154
2 changed files with 24 additions and 4 deletions

View File

@@ -351,8 +351,8 @@ def test_should_update_whitelist(
service_id = str(uuid.uuid4())
data = OrderedDict([
('email_addresses-1', 'test@example.com'),
('email_addresses-3', 'test@example.com'),
('phone_numbers-0', '07900900000'),
('email_addresses-3', ' test@example.com '),
('phone_numbers-0', '07900900000 '),
('phone_numbers-2', '+1800-555-555'),
])