#NEWLINE# def test_error( self ) : #NEWLINE# #INDENT# r = self . post_json ( '/test' , data = 'bla' , raw = True ) #NEWLINE# assert_equals ( r . status_code , 400 ) #NEWLINE# assert_dict_equal ( r . json , dict ( status = 400 , description = 'Not a JSON.' ) )