MCPcopy
hub / github.com/tornadoweb/tornado / test_list

Method test_list

tornado/test/locale_test.py:148–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 self.assertEqual(locale.friendly_number(1000000), "1,000,000")
147
148 def test_list(self):
149 locale = tornado.locale.get("en_US")
150 self.assertEqual(locale.list([]), "")
151 self.assertEqual(locale.list(["A"]), "A")
152 self.assertEqual(locale.list(["A", "B"]), "A and B")
153 self.assertEqual(locale.list(["A", "B", "C"]), "A, B and C")
154
155 def test_format_day(self):
156 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