def test_delete(self): ''' Test parallels.delete ''' name = 'macvm' runas = 'macdev' # Validate delete mock_delete = MagicMock() with patch.object(parallels, 'prlctl', mock_delete): parallels.delete(name, runas=runas) mock_delete.assert_called_once_with('delete', name, runas=runas)
def test_delete(self): """ Test parallels.delete """ name = "macvm" runas = "macdev" # Validate delete mock_delete = MagicMock() with patch.object(parallels, "prlctl", mock_delete): parallels.delete(name, runas=runas) mock_delete.assert_called_once_with("delete", name, runas=runas)