#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# r = json_response ( ) #NEWLINE# assert_equals ( r . status_code , 200 ) #NEWLINE# assert_equals ( r . mimetype , 'application/json' ) #NEWLINE# r = json_response ( status_ = 400 ) #NEWLINE# assert_equals ( r . status_code , 400 ) #NEWLINE# r = json_response ( some = 'val' , data = 4 ) #NEWLINE# assert_equals ( r . status_code , 200 ) #NEWLINE# assert_dict_equal ( r . json , { #NEWLINE# #INDENT# 'status' : 200 , #NEWLINE# 'some' : 'val' , #NEWLINE# 'data' : 4 , #NEWLINE# #UNINDENT# } )