

def test_domain_xml(self):
    'XML without network.'
    config = '<domain></domain>'
    expected = ('<domain><name>foo</name><uuid>foo</uuid><devices><disk device="disk" type="file">' + '<source file="/diskpath.qcow2" /></disk></devices></domain>')
    results = qemu.domain_xml('foo', config, '/diskpath.qcow2')
    self.assertEqual(config, expected, compare(results, expected))

dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py DomainXMLTest.test_domain_xml/VarMisuse@41/112 `results`->`config`