Пример #1
0
 def testTopLeft(self):
     self.assertEqual((0, 0), Position.top_left((10, 10), (8, 8)))
Пример #2
0
 def testTopCentre(self):
     self.assertEqual((1, 0), Position.top_centre((10, 10), (8, 8)))
Пример #3
0
 def testBottomCentre(self):
     self.assertEqual((1, 2), Position.bottom_centre((10, 10), (8, 8)))
Пример #4
0
 def testBottomRight(self):
     self.assertEqual((2, 2), Position.bottom_right((10, 10), (8, 8)))
Пример #5
0
 def testBottomLeft(self):
     self.assertEqual((0, 2), Position.bottom_left((10, 10), (8, 8)))
Пример #6
0
 def testMiddleRight(self):
     self.assertEqual((2, 1), Position.middle_right((10, 10), (8, 8)))
Пример #7
0
 def testMiddleCentre(self):
     self.assertEqual((1, 1), Position.middle_centre((10, 10), (8, 8)))
Пример #8
0
 def testMiddleLeft(self):
     self.assertEqual((0, 1), Position.middle_left((10, 10), (8, 8)))
Пример #9
0
 def testTopRight(self):
     self.assertEqual((2, 0), Position.top_right((10, 10), (8, 8)))