def test_plain(self, monkeypatch): monkeypatch.setitem(sys.modules, "plain", pretend.stub()) assert shell.autodetect() == "plain"
def test_ipython(self, monkeypatch): monkeypatch.setitem(sys.modules, "IPython", pretend.stub()) assert shell.autodetect() == "ipython"
def test_plain(self): assert shell.autodetect() == "plain"