Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
    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)