def test_get_previous_period_year_crossing(self): week = Week(2018, 1) previous = week.get_previous_period() self.assertEqual(2017, previous.year) self.assertEqual(52, previous.week)
def test_get_previous_period_year_crossing(self): week = Week(2018, 1) previous = week.get_previous_period() self.assertEqual(2017, previous.year) self.assertEqual(52, previous.week)
def test_get_previous_period(self): week = Week(2018, 3) previous = week.get_previous_period() self.assertEqual(2018, previous.year) self.assertEqual(2, previous.week)
def test_get_previous_period(self): week = Week(2018, 3) previous = week.get_previous_period() self.assertEqual(2018, previous.year) self.assertEqual(2, previous.week)