Removed OrderedDict

Added missing assert in test
This commit is contained in:
Rebecca Law
2016-11-11 10:50:38 +00:00
parent c758694b98
commit b0d88e0888
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ def test_check_template_is_for_notification_type_fails_when_template_type_does_n
with pytest.raises(BadRequestError) as e:
check_template_is_for_notification_type(notification_type=notification_type,
template_type=template_type)
e.value.status_code == 400
assert e.value.status_code == 400
error_message = '{0} template is not suitable for {1} notification'.format(template_type, notification_type)
assert e.value.message == error_message
assert e.value.fields == [{'template': error_message}]