Refactor unit tests

This commit is contained in:
Rebecca Law
2015-12-11 14:50:03 +00:00
parent 49a8caefa0
commit c0550d2c61
4 changed files with 112 additions and 125 deletions

View File

@@ -59,4 +59,4 @@ def test_should_return_400_when_sms_code_is_too_short(notifications_admin, notif
data = json.loads(response.get_data(as_text=True))
assert len(data.keys()) == 1
assert 'sms_code' in data
assert data['sms_code'].sort() == ['Code must be 5 digits', 'Code does not match'].sort()
assert set(data['sms_code']) == ['Code must be 5 digits', 'Code does not match'].sort()