def test_user_error(self, capsys, monkeypatch):
        mock_cmd = Mock(side_effect=InvalidCommand)
        monkeypatch.setattr(Run, "execute", mock_cmd)
        got = cmd_main([])
        assert 3 == got
        out, err = capsys.readouterr()
        assert err in "ERROR"
dataset/ETHPy150Open pydoit/doit/tests/test_doit_cmd.py/TestErrors.test_user_error/swapped operands of `in`