def test_tz_specified(self): dt = datetime.datetime.now(dateutils.local_tz()) new_date = _ensure_tz_specified(dt) self.assertEquals(new_date.tzinfo, dateutils.utc_tz())
def test_none_object(self): dt = None new_date = _ensure_tz_specified(dt) self.assertEquals(new_date, None)