def test_weekday_with_multiple_inputs_returns_multiple_days(self):
mondays_and_tuesdays = Calendary(2016).weekday((0, 1), month=7)
mondays = [d[1] for d in mondays_and_tuesdays if d[0] == 'Monday']
tuesdays = [d[1] for d in mondays_and_tuesdays if d[0] == 'Tuesday']
monday_july_eighteenth = datetime.date(year=2016, month=7, day=18)
tuesday_july_nineteenth = datetime.date(year=2016, month=7, day=19)
assert monday_july_eighteenth in mondays
assert tuesday_july_nineteenth in tuesdays
评论列表
文章目录