Exemplo n.º 1
0
 def testflow_errors_twoedgegroup(self):
     src = ((2.0, 2.0))
     badline1 = ((4, 1), (2, 2))
     badline2 = ((1, 1), (2, 2))
     expected = [badline1, badline2]
     actual = flow_errors(self.di, src)
     assert self.sequence_equal(actual, expected)
Exemplo n.º 2
0
 def testflow_errors_single_edge(self):
     src = ((7.0, 7.0))
     badline1 = ((6, 3), (7, 7))
     expected = [badline1]
     actual = flow_errors(self.di, src)
     assert self.sequence_equal(actual, expected)