MCPcopy Index your code
hub / github.com/ipython/ipython / test_magic_parse_long_options

Function test_magic_parse_long_options

tests/test_magic.py:188–195  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

186
187
188def test_magic_parse_long_options():
189 """Magic.parse_options can handle --foo=bar long options"""
190 ip = get_ipython()
191 m = DummyMagics(ip)
192 opts, _ = m.parse_options("--foo --bar=bubble", "a", "foo", "bar=")
193 assert "foo" in opts
194 assert "bar" in opts
195 assert opts["bar"] == "bubble"
196
197
198def doctest_hist_f():

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
DummyMagicsClass · 0.85
parse_optionsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…