def test_april1_2021_is_summer_fall_2021(self): """ Tests that 04/01/2020 results in summer/fall 2021 (20212, 20213) """ date = datetime(2021, 4, 1) result = get_recent_semesters(date) self.assertEqual(self.summer_fall_2021, result)
def test_november5_2020_is_spring_2021(self): """ Tests that 11/30/2020 results in spring 2021 (20211) """ date = datetime(2020, 11, 5) result = get_recent_semesters(date) self.assertEqual(self.spring_2021, result)
def test_march1_2021_is_spring_2021(self): """ Tests that 03/01/2020 results in spring 2021 (20211) """ date = datetime(2021, 3, 1) result = get_recent_semesters(date) self.assertEqual(self.spring_2021, result)