Back to index

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

List of all members.

Static Public Attributes

list argument_signatures
list failures = ['2']
list successes

Detailed Description

Tests specifying an Optional arg for an Optional

Definition at line 566 of file

Member Data Documentation

Initial value:
        Sig('-w', nargs='?'),
        Sig('-x', nargs='?', const=42),
        Sig('-y', nargs='?', default='spam'),
        Sig('-z', nargs='?', type=int, const='42', default='84'),

Definition at line 569 of file

Definition at line 575 of file

Initial value:
        ('', NS(w=None, x=None, y='spam', z=84)),
        ('-w', NS(w=None, x=None, y='spam', z=84)),
        ('-w 2', NS(w='2', x=None, y='spam', z=84)),
        ('-x', NS(w=None, x=42, y='spam', z=84)),
        ('-x 2', NS(w=None, x='2', y='spam', z=84)),
        ('-y', NS(w=None, x=None, y=None, z=84)),
        ('-y 2', NS(w=None, x=None, y='2', z=84)),
        ('-z', NS(w=None, x=None, y='spam', z=42)),
        ('-z 2', NS(w=None, x=None, y='spam', z=2)),

Definition at line 576 of file

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