def test_utc_datetime_with_datetime_in_another_tz(self): value = utc_datetime(self._parse_dt(u'2014-12-20 15:45:00', u'America/Montreal')) self._check_dt(value, u'2014-12-20 20:45:00.000000 UTC +0000')
def test_utc_datetime_with_datetime_in_another_tz(self): value = utc_datetime( self._parse_dt(u'2014-12-20 15:45:00', u'America/Montreal')) self._check_dt(value, u'2014-12-20 20:45:00.000000 UTC +0000')
def test_utc_datetime(self): value = utc_datetime(self._parse_dt(u'2014-12-10 15:45:00', u'UTC')) self._check_dt(value, u'2014-12-10 15:45:00.000000 UTC +0000')