MCPcopy Create free account
hub / github.com/ipython/ipython / test_magic_parse_long_options

Function test_magic_parse_long_options

IPython/core/tests/test_magic.py:168–175  ·  view source on GitHub ↗

Magic.parse_options can handle --foo=bar long options

()

Source from the content-addressed store, hash-verified

166 nt.assert_equal(opts['f'], expected)
167
168def test_magic_parse_long_options():
169 """Magic.parse_options can handle --foo=bar long options"""
170 ip = get_ipython()
171 m = DummyMagics(ip)
172 opts, _ = m.parse_options('--foo --bar=bubble', 'a', 'foo', 'bar=')
173 nt.assert_in('foo', opts)
174 nt.assert_in('bar', opts)
175 nt.assert_equal(opts['bar'], "bubble")
176
177
178@dec.skip_without('sqlite3')

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
DummyMagicsClass · 0.85
parse_optionsMethod · 0.80

Tested by

no test coverage detected