MCPcopy Create free account
hub / github.com/StackStorm/st2 / test_format_dt

Method test_format_dt

st2client/tests/unit/test_util_date.py:29–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27
28class DateUtilsTestCase(unittest.TestCase):
29 def test_format_dt(self):
30 dt = datetime.datetime(2015, 10, 20, 8, 0, 0)
31 dt = add_utc_tz(dt)
32 result = format_dt(dt)
33 self.assertEqual(result, "Tue, 20 Oct 2015 08:00:00 UTC")
34
35 def test_format_isodate(self):
36 # No timezone, defaults to UTC

Callers

nothing calls this directly

Calls 2

add_utc_tzFunction · 0.90
format_dtFunction · 0.90

Tested by

no test coverage detected