

def testAmbiguousNext(self):
    input = 'The next event will take place on Friday'
    friday = 4
    num_days_away = ((friday - datetime.datetime.today().weekday()) % 7)
    target = (datetime.datetime.today() + datetime.timedelta(days=num_days_away))
    self.compareDate(input, target)

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