def test_get_config(self):
     fin = "{0}/admin-net.xml".format(TEMPLATE_DIR)
     values = dict(cloud="cloud",
                   cloudbr="cloudbr",
                   admingw="192.168.124.1",
                   adminnetmask="255.255.248.0",
                   cloudfqdn="unittest.suse.de",
                   adminip="192.168.124.10",
                   forwardmode="nat")
     is_config = libvirt_setup.get_config(values, fin)
     should_config = libvirt_setup.readfile(
         "{0}/cloud-admin.net.xml".format(FIXTURE_DIR))
     self.assertTrue(type(is_config), str)
     self.assertEqual(is_config, should_config)
 def test_get_config(self):
     fin = "{0}/admin-net.xml".format(TEMPLATE_DIR)
     values = dict(
         cloud="cloud",
         cloudbr="cloudbr",
         admingw="192.168.124.1",
         adminnetmask="255.255.248.0",
         cloudfqdn="unittest.suse.de",
         adminip="192.168.124.10",
         forwardmode="nat")
     is_config = libvirt_setup.get_config(values, fin)
     should_config = libvirt_setup.readfile(
         "{0}/cloud-admin.net.xml".format(FIXTURE_DIR))
     self.assertTrue(type(is_config), str)
     self.assertEqual(is_config, should_config)