def METHOD_NAME(self, monkeypatch):
    monkeypatch.setitem(sys.modules, "bpython", pretend.stub())
    monkeypatch.setitem(sys.modules, "IPython", pretend.stub())
    assert shell.autodetect() == "bpython"