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

Method test_list

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

Source from the content-addressed store, hash-verified

138 self.assertEqual(locale.friendly_number(1000000), "1,000,000")
139
140 def test_list(self):
141 locale = tornado.locale.get("en_US")
142 self.assertEqual(locale.list([]), "")
143 self.assertEqual(locale.list(["A"]), "A")
144 self.assertEqual(locale.list(["A", "B"]), "A and B")
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")

Callers

nothing calls this directly

Calls 2

listMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected