예제 #1
0
 def setUp(self) -> None:
     # Arange
     l = [((0, 0), (100, 100)),
          ((0, 0), (-100, 100)),
          ((0, 0), (-100, -100)),
          ]
     # Act
     self.graphs = construct_graphs(map(lambda x: line.fromTouple(x), l))
예제 #2
0
 def test_should_construct_nothing(self):
     graphs = construct_graphs([])
     self.assertEqual(0, len(graphs), "should be one graph")
예제 #3
0
 def setUp(self) -> None:
     # Arange
     lines = map(lambda x: line.fromTouple(x), [((0, 0), (100, 100)), ((0, 0), (-100, 100))])
     # Act
     self.graphs = construct_graphs(lines)