1 from IPython.utils.shimmodule import ShimModule 2 import IPython 3 4 5 def test_shimmodule_repr_does_not_fail_on_import_error(): 6 shim_module = ShimModule("shim_module", mirror="mirrored_module_does_not_exist") 7 repr(shim_module) 8 9 10 def test_shimmodule_repr_forwards_to_module(): 11 shim_module = ShimModule("shim_module", mirror="IPython") 12 assert repr(shim_module) == repr(IPython) 13