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

Method test_items

python/python3/tornado/test/options_test.py:150–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_sample_optionsMethod · 0.95
itemsMethod · 0.80

Tested by

no test coverage detected