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

Function test_parse_options

IPython/core/tests/test_magic.py:486–492  ·  view source on GitHub ↗

Tests for basic options parsing in magics.

()

Source from the content-addressed store, hash-verified

484
485
486def test_parse_options():
487 """Tests for basic options parsing in magics."""
488 # These are only the most minimal of tests, more should be added later. At
489 # the very least we check that basic text/unicode calls work OK.
490 m = DummyMagics(_ip)
491 nt.assert_equal(m.parse_options('foo', '')[1], 'foo')
492 nt.assert_equal(m.parse_options(u'foo', '')[1], u'foo')
493
494
495def test_dirops():

Callers

nothing calls this directly

Calls 2

DummyMagicsClass · 0.85
parse_optionsMethod · 0.80

Tested by

no test coverage detected