def setUp(self): route_list = [] for rec in self.route_recs: route_obj = route.Route(**rec) route_list.append(route_obj) self.route_table = route.RouteTable(route_list)
def test_get_missing_routes(self): route_obj = route.Route(**self.route_recs[0]) rt = route.RouteTable([route_obj]) missing = self.route_table.get_missing(rt) self.assertEqual(len(missing), 1)
def setUp(self): self.route_obj = route.Route(**self.route_rec)