def __contains__(self, cmd):
        try:
            self[cmd]
        except CommandNotFound:
            return False
        else:
            return True
Tests for the existance of the command, e.g., ``"ls" in plumbum.local``.
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/machines/base.py/BaseMachine.__contains__