def test_get_next_period_year_border(self): week = Week(2017, 52) next = week.get_next_period() self.assertEqual(2018, next.year) self.assertEqual(1, next.week)
def test_get_next_period_year_border(self): week = Week(2017, 52) next = week.get_next_period() self.assertEqual(2018, next.year) self.assertEqual(1, next.week)
def test_get_next_period(self): week = Week(2018, 3) next = week.get_next_period() self.assertEqual(2018, next.year) self.assertEqual(4, next.week)
def test_get_next_period(self): week = Week(2018, 3) next = week.get_next_period() self.assertEqual(2018, next.year) self.assertEqual(4, next.week)