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))
def test_should_construct_nothing(self): graphs = construct_graphs([]) self.assertEqual(0, len(graphs), "should be one graph")
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)