

def _checkArgs(self, resource, start_time, end_time):
    assert (type(resource) is str), 'Resource must be a string'
    assert (type(start_time) in (types.NoneType, datetime.datetime)), ('Start time must be a datetime object or None, not %s' % str(type(start_time)))
    assert (type(end_time) in (types.NoneType, datetime.datetime)), ('End time must be a datetime object or None, not %s' % str(type(end_time)))
    if (start_time is not None):
        assert (start_time.tzinfo is None), 'Start time must NOT have time zone.'
    if (end_time is not None):
        assert (end_time.tzinfo is None), 'End time must NOT have time zone.'

dataset/ETHPy150Open NORDUnet/opennsa/opennsa/backends/common/calendar.py ReservationCalendar._checkArgs/original