def test_method_update_stopped_ascending_time(self): race_data = MagicMock(spec='replayenhancer.RaceData.RaceData', autospec=True) driver = MagicMock(spec='replayenhancer.RaceData.Driver', autospec=True) font = MagicMock(spec='PIL.ImageFont', autospec=True) size = (100, 100) location = (100, 1, 100) instance = PitStopFlyout(race_data, driver, font, size, location) for time in range(16): instance.update(location, time)
def test_property_text_color_pit_out(self): race_data = MagicMock(spec='replayenhancer.RaceData.RaceData', autospec=True) driver = MagicMock(spec='replayenhancer.RaceData.Driver', autospec=True) font = MagicMock(spec='PIL.ImageFont', autospec=True) size = (100, 100) location = (0, 1, 0) instance = PitStopFlyout(race_data, driver, font, size, location) for time in range(16): instance.update(location, time) expected_result = (255, 255, 255, 255) self.assertTupleEqual(instance.text_color, expected_result)