Example #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)
Example #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)
Example #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)