#NEWLINE# def test_raw_string( ) : #NEWLINE# #INDENT# fake_schema = mock . Mock ( response_body_schema = { #NEWLINE# #INDENT# 'type' : 'string' , #NEWLINE# #UNINDENT# } ) #NEWLINE# fake_validator = mock . Mock ( spec = SchemaValidator , schema = fake_schema ) #NEWLINE# response = Response ( body = 'abe1351f' , headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/text; charset=UTF-8' , #NEWLINE# #UNINDENT# } ) #NEWLINE# validator_map = mock . Mock ( spec = ValidatorMap , response = response ) #NEWLINE# validate_response ( response , validator_map ) #NEWLINE# fake_validator . validate . assert_called_once_with ( response . body . decode ( 'utf-8' ) )