def test_create_xml(self):
        xml = """<network><forward mode="nat"/><ip address="192.168.1.1" netmask="255.255.255.0">""" + \
              """<dhcp><range end="192.168.1.128" start="192.168.1.2"/></dhcp></ip></network>"""
        expected = """<network><forward mode="nat" /><ip address="192.168.1.1" netmask="255.255.255.0">""" + \
            """<dhcp><range end="192.168.1.128" start="192.168.1.2" /></dhcp></ip>""" + \
            """<name>foo</name><uuid>foo</uuid><bridge name="virbr-foo" /></network>"""
        hypervisor = mock.Mock()
        hypervisor.listNetworks.return_value = []
        with mock.patch('see.context.resources.network.open', mock.mock_open(read_data=xml), create=True):
            network.create(hypervisor, 'foo', {'configuration': '/foo', 'ip_autodiscovery': False})
        results = hypervisor.networkCreateXML.call_args_list[0][0][0]
        self.assertEqual(results, expected, compare(results, expected))
returns PackageLoader initialized from templates
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/network_test.py/CreateTest.test_create_xml--crossover with--dataset/ETHPy150Open pallets/jinja/tests/conftest.py/package_loader