def test_reset(self): ''' Test parallels.reset ''' name = 'macvm' runas = 'macdev' mock_start = MagicMock() with patch.object(parallels, 'prlctl', mock_start): parallels.reset(name, runas=runas) mock_start.assert_called_once_with('reset', name, runas=runas)
def test_reset(self): """ Test parallels.reset """ name = "macvm" runas = "macdev" mock_start = MagicMock() with patch.object(parallels, "prlctl", mock_start): parallels.reset(name, runas=runas) mock_start.assert_called_once_with("reset", name, runas=runas)