#NEWLINE# def test_partial_update_invalid_type( self ) : #NEWLINE# #INDENT# res = self . app . patch_json_api ( self . url , { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'id' : res . collection . _id , #NEWLINE# 'type' : 'collection' , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'title' : self . new_title , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , auth = self . user . auth , expect_errors = True ) #NEWLINE# assert_equal ( res . status_code , 409 )