Ejemplo n.º 1
0
 def test_paper_example_alt_flow_3(self):
     problem = get_paper_problem()
     problem.property = WaypointProperty(Flow(4, "42.42.0.0/16"), 3)
     self.compare_to_reference(problem, "paper_example_alt_flow_3.txt")
Ejemplo n.º 2
0
 def test_paper_example_multi_flow(self):
     problem = get_paper_problem()
     problem.property = IsolationProperty([Flow(1, "42.42.0.0/16"), Flow(4, "99.99.99.0/24")])
     self.compare_to_reference(problem, "paper_example_multi_flow.txt")
Ejemplo n.º 3
0
 def test_paper_example(self):
     problem = get_paper_problem()
     self.compare_to_reference(problem, "paper_example.txt")
Ejemplo n.º 4
0
 def test_paper_example_static_route(self):
     problem = get_paper_problem()
     problem.property = WaypointProperty(Flow(1, "42.42.0.0/16"), 2)
     problem.static_routes = [StaticRoute("42.42.0.0/16", 1, 4)]
     self.compare_to_reference(problem, "paper_example_static_route.txt")