def assert_ok_response(response):
 nose.tools.assert_true(200, response.status_code)
 return response

def assert_ok_response ( response ) : nose . tools . assert_true ( 200 , response . status_code ) return response
checks that the response returned successfully .