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