

def test_delete_undefine_snapshots(self):
    'Domain undefine with snapshots metadata.'
    domain = mock.Mock()
    logger = mock.Mock()
    domain.isActive.return_value = False
    qemu.domain_delete(logger, logger)
    domain.undefineFlags.assert_called_with(libvirt.VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA)

dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py DomainDeleteTest.test_delete_undefine_snapshots/VarMisuse@40/60 `domain`->`logger`