예제 #1
0
 def test_coordinates(self):
     # Assert 2D coordinates.
     x, y = graph.coordinates(10, 10, 100, 30)
     self.assertAlmostEqual(x, 96.60, places=2)
     self.assertAlmostEqual(y, 60.00, places=2)
     print "pattern.graph.coordinates()"
예제 #2
0
파일: test_graph.py 프로젝트: sp00/pattern
 def test_coordinates(self):
     # Assert 2D coordinates.
     x, y = graph.coordinates(10, 10, 100, 30)
     self.assertAlmostEqual(x, 96.60, places=2)
     self.assertAlmostEqual(y, 60.00, places=2)
     print "pattern.graph.coordinates()"