#NEWLINE# def assert_response( resp , body = None , content_type = 'text/plain' ) : #NEWLINE# #INDENT# assert ( resp . status_code == 200 ) #NEWLINE# assert ( resp . headers [ 'Content-Type' ] == content_type ) #NEWLINE# assert ( resp . text == body )