def test_argument(self):
    with pytest.raises(parseopt.ArgumentError):
        argument = parseopt.Argument()
    argument = parseopt.Argument('-t')
    assert (argument._short_opts == ['-t'])
    assert (argument._long_opts == [])
    assert (argument.dest == 't')
    argument = parseopt.Argument('-t', '--test')
    assert (argument._short_opts == ['-t'])
    assert (argument._long_opts == ['--test'])
    assert (argument.dest == 'test')
    argument = parseopt.Argument('-t', '--test', dest='abc')
    assert (argument.dest == 'abc')
    assert (str(argument) == "Argument(_short_opts: ['-t'], _long_opts: ['--test'], dest: 'abc')")
def test_argument(self):
    with pytest.raises(parseopt.ArgumentError):
        argument = parseopt.Argument()
    argument = parseopt.Argument('-t')
    assert (argument._short_opts == ['-t'])
    assert (argument._long_opts == [])
    assert (argument.dest == 't')
    argument = parseopt.Argument('-t', '--test')
    assert (argument._short_opts == ['-t'])
    assert (argument._long_opts == ['--test'])
    assert (argument.dest == 'test')
    argument = parseopt.Argument('-t', '--test', dest='abc')
    assert (argument.dest == 'abc')
    assert (str(argument) == "Argument(_short_opts: ['-t'], _long_opts: ['--test'], dest: 'abc')")