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

Method test_items

tornado/test/options_test.py:149–154  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

147 self.assertEqual(options["foo"], 2)
148
149 def test_items(self):
150 options = self._sample_options()
151 # OptionParsers always define 'help'.
152 expected = [("a", 1), ("b", 2), ("help", options.help)]
153 actual = sorted(options.items())
154 self.assertEqual(expected, actual)
155
156 def test_as_dict(self):
157 options = self._sample_options()

Callers

nothing calls this directly

Calls 2

_sample_optionsMethod · 0.95
itemsMethod · 0.80

Tested by

no test coverage detected