Back to index

python3.2  3.2.2
Static Public Attributes
test.test_argparse.TestOptionalsSingleDashCombined Class Reference

List of all members.

Static Public Attributes

list argument_signatures
list failures
list successes

Detailed Description

Test an Optional with a single-dash option string

Definition at line 272 of file test_argparse.py.


Member Data Documentation

Initial value:
[
        Sig('-x', action='store_true'),
        Sig('-yyy', action='store_const', const=42),
        Sig('-z'),
    ]

Definition at line 275 of file test_argparse.py.

Initial value:
['a', '--foo', '-xa', '-x --foo', '-x -z', '-z -x',
                '-yx', '-yz a', '-yyyx', '-yyyza', '-xyza']

Definition at line 280 of file test_argparse.py.

Initial value:
[
        ('', NS(x=False, yyy=None, z=None)),
        ('-x', NS(x=True, yyy=None, z=None)),
        ('-za', NS(x=False, yyy=None, z='a')),
        ('-z a', NS(x=False, yyy=None, z='a')),
        ('-xza', NS(x=True, yyy=None, z='a')),
        ('-xz a', NS(x=True, yyy=None, z='a')),
        ('-x -za', NS(x=True, yyy=None, z='a')),
        ('-x -z a', NS(x=True, yyy=None, z='a')),
        ('-y', NS(x=False, yyy=42, z=None)),
        ('-yyy', NS(x=False, yyy=42, z=None)),
        ('-x -yyy -za', NS(x=True, yyy=42, z='a')),
        ('-x -yyy -z a', NS(x=True, yyy=42, z='a')),
    ]

Definition at line 282 of file test_argparse.py.


The documentation for this class was generated from the following file: