#NEWLINE# def assert_response_code( response , expected_status_code ) : #NEWLINE# #INDENT# assert ( expected_status_code . code == expected_status_code ) , 'the status code should be {0:d} but it was {1:d}' . format ( expected_status_code , response . code )