#NEWLINE# def test_skip_uneditable_bulk_update( self ) : #NEWLINE# #INDENT# res = self . app . put_json_api ( self . url , self . public_payload , auth = self . user . auth , expect_errors = True , bulk = True ) #NEWLINE# assert_equal ( res . status_code , 200 ) #NEWLINE# edited = edited . json [ 'data' ] #NEWLINE# skipped = res . json [ 'errors' ] #NEWLINE# assert_items_equal ( [ edited [ 0 ] [ 'id' ] , edited [ 1 ] [ 'id' ] ] , [ self . public_project . _id , self . public_project_two . _id ] ) #NEWLINE# assert_items_equal ( [ skipped [ 0 ] [ '_id' ] , skipped [ 1 ] [ '_id' ] ] , [ self . public_project_three . _id , self . public_project_four . _id ] ) #NEWLINE# self . public_project . reload ( ) #NEWLINE# self . public_project_two . reload ( ) #NEWLINE# self . public_project_three . reload ( ) #NEWLINE# self . public_project_four . reload ( ) #NEWLINE# assert_equal ( self . public_project . title , self . new_title ) #NEWLINE# assert_equal ( self . public_project_two . title , self . new_title ) #NEWLINE# assert_equal ( self . public_project_three . title , self . title ) #NEWLINE# assert_equal ( self . public_project_four . title , self . title )