Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)