#NEWLINE# @ mock . patch . object ( trovebox . Trovebox , 'post' ) #NEWLINE# def test_album_remove_single( self , mock_post ) : #NEWLINE# #INDENT# ' Check that a single photo can be removed from an album ' #NEWLINE# mock_post . return_value = self . _return_value ( self . test_albums_dict [ 1 ] ) #NEWLINE# self . test_albums [ 0 ] . remove ( self . test_photos [ 0 ] , foo = 'bar' ) #NEWLINE# mock_post . assert_called_with ( '/album/1/photo/remove.json' , ids = [ '1a' ] , foo = 'bar' )