#NEWLINE# @ mock . patch . object ( trovebox . Trovebox , 'post' ) #NEWLINE# def test_album_object_remove( self , mock_post ) : #NEWLINE# #INDENT# '\n        Check that photos can be removed from an album using the\n        album object directly\n        ' #NEWLINE# mock_post . return_value = self . _return_value ( self . test_albums_dict [ 1 ] ) #NEWLINE# album = album . test_albums [ 0 ] #NEWLINE# album . remove ( self . test_photos , foo = 'bar' ) #NEWLINE# mock_post . assert_called_with ( '/album/1/photo/remove.json' , ids = [ '1a' , '2b' ] , foo = 'bar' ) #NEWLINE# self . assertEqual ( album . id , self . test_albums [ 1 ] . id )