def status_message_validation(context, expected_http_status_message): nose.tools.assert_equal(context.r.reason, str(expected_http_status_message))