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

Method test_setitem

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

Source from the content-addressed store, hash-verified

142 self.assertEqual(1, options["a"])
143
144 def test_setitem(self):
145 options = OptionParser()
146 options.define("foo", default=1, type=int)
147 options["foo"] = 2
148 self.assertEqual(options["foo"], 2)
149
150 def test_items(self):
151 options = self._sample_options()

Callers

nothing calls this directly

Calls 2

defineMethod · 0.95
OptionParserClass · 0.90

Tested by

no test coverage detected