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

Method _sample_options

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

Source from the content-addressed store, hash-verified

126 self.assertEqual(values, [2])
127
128 def _sample_options(self):
129 options = OptionParser()
130 options.define("a", default=1)
131 options.define("b", default=2)
132 return options
133
134 def test_iter(self):
135 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