MCPcopy
hub / github.com/myusuf3/delorean / test_datetime_timezone_default

Method test_datetime_timezone_default

tests/delorean_tests.py:248–252  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

246 self.assertEqual(pytz.utc, do_timezone)
247
248 def test_datetime_timezone_default(self):
249 do = delorean.Delorean()
250 do.truncate('minute')
251 dt1 = delorean.datetime_timezone(UTC)
252 self.assertEqual(dt1.replace(second=0, microsecond=0), do.datetime)
253
254 def test_datetime_timezone(self):
255 do = delorean.Delorean(timezone="US/Eastern")

Callers

nothing calls this directly

Calls 2

truncateMethod · 0.95
replaceMethod · 0.80

Tested by

no test coverage detected