Пример #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
 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()"