示例#1
0
    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)
示例#2
0
 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)
示例#3
0
 def setUp(self):
     self.route_obj = route.Route(**self.route_rec)