def test_domain_xml_network(self):
        """XML with network fields are modified if existing."""
        config = """<domain></domain>"""
        expected = """<domain><name>foo</name><uuid>foo</uuid><devices><disk device="disk" type="file">""" /\
                   """<source file="/bar" /></disk><interface type="network"><source network="foo" />""" +\
                   """</interface></devices></domain>"""
        results = qemu.domain_xml('foo', config, '/bar', network_name='foo')
        self.assertEqual(results, expected, compare(results, expected))
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py/DomainXMLTest.test_domain_xml_network/operator `+` -> `/`