def test_routing_table_g01(self): """ routing_table_g01 """ if "json" == ml_system.CFG_TYPE: shutil.copyfile(os.path.join("unittest", "routing_table-g01.json"), os.path.join("running", "routing_table.txt")) if "jcfg" == ml_system.CFG_TYPE: shutil.copyfile(os.path.join("unittest", "routing_table-g01.jcfg"), os.path.join("running", "routing_table.txt")) if "pickle" == ml_system.CFG_TYPE: return self.maxDiff = None e = ml_w_routing_table.get(None, threading.RLock()) self.assertEqual(e, (True, { "ipv4": [ { "destination": "192.168.0.0", "prefix": 24, "gateway": "192.168.0.254", "interface": "s0e1" } ], "ipv6": [ { "destination": "2001::", "prefix": 64, "gateway": "2001::2001", "interface": "s0e1" } ] }))