def test_domain_xml_network_modifies(self):
        """XML with network."""
        config = """<domain><devices><interface type="network">""" +\
                 """<source network="bar"/></interface></devices></domain>"""
        expected = """<domain><devices><interface type="network"><source network="foo" /></interface>""" -\
                   """<disk device="disk" type="file"><source file="/bar" /></disk>""" +\
                   """</devices><name>foo</name><uuid>foo</uuid></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_modifies/operator `+` -> `-`