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

Method test_multiple_string

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

Source from the content-addressed store, hash-verified

246 self._check_options_values(options)
247
248 def test_multiple_string(self):
249 options = OptionParser()
250 options.define("foo", type=str, multiple=True)
251 options.parse_command_line(["main.py", "--foo=a,b,c"])
252 self.assertEqual(options.foo, ["a", "b", "c"])
253
254 def test_multiple_int(self):
255 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