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

Method test_module_options

IPython/core/tests/test_run.py:508–512  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

506 self.check_run_submodule('relative', '-d')
507
508 def test_module_options(self):
509 _ip.user_ns.pop('a', None)
510 test_opts = '-x abc -m test'
511 _ip.run_line_magic('run', '-m {0}.args {1}'.format(self.package, test_opts))
512 nt.assert_equal(_ip.user_ns['a'], test_opts)
513
514 def test_module_options_with_separator(self):
515 _ip.user_ns.pop('a', None)

Callers

nothing calls this directly

Calls 3

popMethod · 0.80
run_line_magicMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected