#NEWLINE# def test_required_field_provided( self ) : #NEWLINE# #INDENT# res = self . fetch ( '/echo' , method = 'POST' , headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } , body = json . dumps ( { #NEWLINE# #INDENT# 'name' : 'johnny' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# json_body = parse_json ( res . body ) #NEWLINE# assert ( json_body [ 'name' ] == 'johnny' )