def test_command_version_param():
    with patch.object(BasicCommandLine, '_main') as _main:
        c = BasicCommandLine()
        exception = False
        try:
            c.parse(['--version'])
            assert False
        except __HOLE__:
            exception = True
        assert exception
        assert not _main.called
dataset/ETHPy150Open hyde/commando/commando/tests/test_commando.py/test_command_version_param