def test_next_weekday(self): ''' Test next weekday The Friday following Tuesday, January 15th, 2002 was January 18th, 2002. see http://www.cpearson.com/excel/DateTimeWS.htm ''' date1 = Date(15, Jan, 2002) date2 = next_weekday(date1, Friday) expected_date = Date(18, Jan, 2002) self.assertTrue(expected_date == date2)