def test_create_no_xml(self):
        expected = """<network><forward mode="nat" /><name>foo</name><uuid>foo</uuid>""" +\
                   """<bridge name="virbr-foo" /></network>"""
        hypervisor = mock.Mock()
        hypervisor.listNetworks.return_value = []
        network.create(hypervisor, 'foo', {})
        results = hypervisor.networkCreateXML.call_args_list[0][0][0]
        self.assertEqual(results, expected, compare(results, expected))
Default XML configuration is used if not provided.
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/network_test.py/CreateTest.test_create_no_xml