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

Method _sample_options

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

Source from the content-addressed store, hash-verified

127 self.assertEqual(values, [2])
128
129 def _sample_options(self):
130 options = OptionParser()
131 options.define("a", default=1)
132 options.define("b", default=2)
133 return options
134
135 def test_iter(self):
136 options = self._sample_options()

Callers 4

test_iterMethod · 0.95
test_getitemMethod · 0.95
test_itemsMethod · 0.95
test_as_dictMethod · 0.95

Calls 2

defineMethod · 0.95
OptionParserClass · 0.90

Tested by

no test coverage detected