def test_delete(self, mock_path, mock_command): mock_path.return_value = False root = RootInit('root_dir') root.delete() mock_command.assert_called_once_with( ['rm', '-r', '-f', 'root_dir'] )
def test_delete(self, mock_path, mock_wipe): mock_path.return_value = False root = RootInit('root_dir') root.delete() mock_wipe.assert_called_once_with('root_dir')