def test_get_yardline_should_return_yard_line_from_field_2(self): # Arrange field = PlayField().grid((400, 300)) # Act & Assert self.assertEqual(0, field.get_yardline(0)) self.assertEqual(15, field.get_yardline(45)) self.assertEqual(50, field.get_yardline(150)) self.assertEqual(90, field.get_yardline(270))
def test_get_yardline_should_return_yard_line_from_field_1(self): # Arrange field = PlayField().grid((200, 200)) # Act & Assert self.assertEqual(0, field.get_yardline(0)) self.assertEqual(10, field.get_yardline(20)) self.assertEqual(50, field.get_yardline(100)) self.assertEqual(70, field.get_yardline(140)) self.assertEqual(95, field.get_yardline(190))