

def testNextFriday(self):
    input = 'Next Friday, go to the grocery store'
    friday = 4
    num_days_away = ((friday - datetime.datetime.today().weekday()) % 7)
    target = (datetime.datetime.today() + datetime.timedelta(days=(7 + num_days_away)))
    self.compareDate(input, target)

dataset/ETHPy150Open crm416/semantic/semantic/test/testDates.py TestDate.testNextFriday/original