#NEWLINE# def test_update_project_with_no_title_or_category_formatting( self ) : #NEWLINE# #INDENT# res = self . app . put_json_api ( self . private_url , { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'type' : 'nodes' , #NEWLINE# 'id' : self . private_project . _id , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'description' : 'New description' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , auth = res . user . auth , expect_errors = True ) #NEWLINE# errors = res . json [ 'errors' ] #NEWLINE# assert isinstance ( errors , list ) #NEWLINE# assert_equal ( len ( errors ) , 2 ) #NEWLINE# errors = res . json [ 'errors' ] #NEWLINE# assert_items_equal ( [ errors [ 0 ] [ 'source' ] , errors [ 1 ] [ 'source' ] ] , [ { #NEWLINE# #INDENT# 'pointer' : '/data/attributes/category' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'pointer' : '/data/attributes/title' , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# assert_items_equal ( [ errors [ 0 ] [ 'detail' ] , errors [ 1 ] [ 'detail' ] ] , [ 'This field is required.' , 'This field is required.' ] )