예제 #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)