Exemplo n.º 1
0
 def test_calculate_anchor_bottom(self):
     self.assertEqual(calculate_anchor("bottom", "y", 100), 100)
Exemplo n.º 2
0
 def test_calculate_anchor_centre(self):
     self.assertEqual(calculate_anchor("center", "x", 100), 50)
Exemplo n.º 3
0
 def test_calculate_anchor_with_float(self):
     self.assertEqual(calculate_anchor(1.23, "x", 12345), 1.23)
Exemplo n.º 4
0
 def test_calculate_anchor_bottom(self):
     self.assertEqual(
         calculate_anchor("bottom", "y", 100),
         100
     )
Exemplo n.º 5
0
 def test_calculate_anchor_centre(self):
     self.assertEqual(
         calculate_anchor("center", "x", 100),
         50
     )
Exemplo n.º 6
0
 def test_calculate_anchor_with_float(self):
     self.assertEqual(
         calculate_anchor(1.23, "x", 12345),
         1.23
     )