def status_code_validation(context, invalid_http_status_code): nose.tools.assert_not_equal(context.r.status_code, int(invalid_http_status_code))