def test_createScheduleUrl_givenProSeasonWeek1_returnsUrlWithWeek21(self): self.schedule.stype = stypes.PRO expected = 'http://www.nfl.com/ajax/scorestrip?season=0&seasonType=PRO&week=21' actual = fetch._create_schedule_url(self.schedule) self.assertEqual(actual, expected)
def test_createScheduleUrl_givenRegularSeasonWeek1_returnsUrlWithWeek1( self): expected = 'http://www.nfl.com/ajax/scorestrip?season=0&seasonType=REG&week=1' actual = fetch._create_schedule_url(self.schedule) self.assertEqual(actual, expected)
def test_createScheduleUrl_givenPostSeasonWeek4_returnsUrlWithWeek22(self): self.schedule.stype = stypes.POST self.schedule.week = 4 expected = 'http://www.nfl.com/ajax/scorestrip?season=0&seasonType=POST&week=22' actual = fetch._create_schedule_url(self.schedule) self.assertEqual(actual, expected)