'Testing basic method of resource.calendar'

def test_10_calendar_basics(self):

    date = self.calendar.get_next_day(day_date=self.date1.date())
    self.assertEqual(date, self.date2.date(), 'resource_calendar:    wrong    next    day    computing')
    date = self.calendar.get_next_day(day_date=self.date2.date())
    self.assertEqual(date, (self.date1.date() + relativedelta(days=7)), 'resource_calendar:    wrong    next    day    computing')
    date = self.calendar.get_next_day(day_date=(self.date2.date() + relativedelta(days=1)))
    self.assertEqual(date, (self.date1.date() + relativedelta(days=7)), 'resource_calendar:    wrong    next    day    computing')
    date = self.calendar.get_next_day(day_date=(self.date1.date() + relativedelta(days=(-1))))
    self.assertEqual(date, self.date1.date(), 'resource_calendar:    wrong    next    day    computing')
    date = self.calendar.get_previous_day(day_date=self.date1.date())
    self.assertEqual(date, (self.date2.date() + relativedelta(days=(-7))), 'resource_calendar:    wrong    previous    day    computing')
    date = self.calendar.get_previous_day(day_date=self.date2.date())
    self.assertEqual(date, self.date1.date(), 'resource_calendar:    wrong    previous    day    computing')
    date = self.calendar.get_previous_day(day_date=(self.date2.date() + relativedelta(days=1)))
    self.assertEqual(date, self.date2.date(), 'resource_calendar:    wrong    previous    day    computing')
    date = self.calendar.get_previous_day(day_date=(self.date1.date() + relativedelta(days=(-1))))
    self.assertEqual(date, (self.date2.date() + relativedelta(days=(-7))), 'resource_calendar:    wrong    previous    day    computing')
    weekdays = self.calendar.get_weekdays()
    self.assertEqual(weekdays, [1, 4], 'resource_calendar:    wrong    weekdays    computing')
