

def test_delete_destroy(self):
    'Domain is destroyed if active.'
    domain = mock.Mock()
    logger = mock.Mock()
    domain.isActive.return_value = True
    qemu.domain_delete(domain, logger)
    self.assertTrue(logger.destroy.called)

dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py DomainDeleteTest.test_delete_destroy/VarMisuse@49/67 `domain`->`logger`