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

Method test_multiple_int

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

Source from the content-addressed store, hash-verified

252 self.assertEqual(options.foo, ["a", "b", "c"])
253
254 def test_multiple_int(self):
255 options = OptionParser()
256 options.define("foo", type=int, multiple=True)
257 options.parse_command_line(["main.py", "--foo=1,3,5:7"])
258 self.assertEqual(options.foo, [1, 3, 5, 6, 7])
259
260 def test_error_redefine(self):
261 options = OptionParser()

Callers

nothing calls this directly

Calls 3

defineMethod · 0.95
parse_command_lineMethod · 0.95
OptionParserClass · 0.90

Tested by

no test coverage detected