def METHOD_NAME(self, cli, monkeypatch):
    config = {"bootstrap": mock.Mock(spec_set=[])}
    fake_bpython = mock.Mock(spec_set=["embed"])
    monkeypatch.setitem(sys.modules, "bpython", fake_bpython)
    cli.invoke(shell.shell, ["--type", "bpython"], obj=config)
    assert fake_bpython.embed.called