def test_monthweekdaydaterange_is_correct(self): """ Test if time from next wednesday morning to next wednesday night is correct :return: None """ params = {'syear': 2015, 'smon': 7, 'smday': 0, 'swday': 1, 'swday_offset': 2, 'eyear': 2015, 'emon': 8, 'emday': 0, 'ewday': 4, 'ewday_offset': 3, 'skip_interval': 0, 'other': ''} caldate = MonthWeekDayDaterange(params) assert caldate.is_correct()
def test_monthweekdaydaterange_is_correct(self): # Time from next wednesday morning to next wednesday night caldate = MonthWeekDayDaterange(2015, 7, 0, 1, 2, 2015, 8, 0, 4, 3, 0, '') self.assertTrue(caldate.is_correct())