Back to index

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

List of all members.

Static Public Attributes

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

Detailed Description

Tests specifying an args for an Optional that accepts zero or more

Definition at line 589 of file

Member Data Documentation

Initial value:
        Sig('-x', nargs='*'),
        Sig('-y', nargs='*', default='spam'),

Definition at line 592 of file

Definition at line 596 of file

Initial value:
        ('', NS(x=None, y='spam')),
        ('-x', NS(x=[], y='spam')),
        ('-x a', NS(x=['a'], y='spam')),
        ('-x a b', NS(x=['a', 'b'], y='spam')),
        ('-y', NS(x=None, y=[])),
        ('-y a', NS(x=None, y=['a'])),
        ('-y a b', NS(x=None, y=['a', 'b'])),

Definition at line 597 of file

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