def test_delete_destroy_error(self):
        domain = mock.Mock()
        logger = mock.Mock()
        domain.isActive.return_value = True
        domain.destroy.side_effect = libvirt.libvirtError("BOOM")
        vbox.domain_delete(domain, logger)
        self.assertTrue(domain.undefine.called)
Domain destroy raises error.
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/vbox_test.py/DomainDeleteTest.test_delete_destroy_error