#NEWLINE# def test_delete( self , mock_registry ) : #NEWLINE# #INDENT# db_obj = fakes . FakeOperation ( ) #NEWLINE# mock_registry . Operation . get_by_uuid . return_value = db_obj #NEWLINE# handler = operation . OperationHandler ( self . ctx ) #NEWLINE# handler . delete ( 'test_id' ) #NEWLINE# db_obj . destroy . assert_called_once_with ( self . ctx ) #NEWLINE# mock_registry . Operation . get_by_uuid . assert_called_once_with ( self . ctx , 'test_id' )