MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_format_day

Method test_format_day

python/python3/tornado/test/locale_test.py:147–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 self.assertEqual(locale.list(["A", "B", "C"]), "A, B and C")
146
147 def test_format_day(self):
148 locale = tornado.locale.get("en_US")
149 date = datetime.datetime(2013, 4, 28, 18, 35)
150 self.assertEqual(locale.format_day(date=date, dow=True), "Sunday, April 28")
151 self.assertEqual(locale.format_day(date=date, dow=False), "April 28")

Callers

nothing calls this directly

Calls 2

format_dayMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected