'Testing calendar days scheduling'

def test_50_calendar_schedule_days(self):

    res = self.calendar.schedule_days_get_date(5, day_date=self.date1)
    self.assertEqual(res.date(), Datetime.from_string('2013-02-26    00:00:00').date(), 'resource_calendar:    wrong    days    scheduling')
    res = self.calendar.schedule_days_get_date((-2), day_date=self.date1)
    self.assertEqual(res.date(), Datetime.from_string('2013-02-08    00:00:00').date(), 'resource_calendar:    wrong    days    scheduling')
    res = self.calendar.schedule_days_get_date(5, day_date=self.date1, compute_leaves=True, resource_id=self.resource1_id)
    self.assertEqual(res.date(), Datetime.from_string('2013-03-01    00:00:00').date(), 'resource_calendar:    wrong    days    scheduling')
    res = self.ResourceCalendar.with_context(self.context).schedule_days_get_date(5, day_date=self.date1, default_interval=(8, 16))
    self.assertEqual(res, Datetime.from_string('2013-02-16    16:00:00'), 'resource_calendar:    wrong    days    scheduling')
