Back to index

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

List of all members.

Static Public Attributes

list argument_signatures
list failures = ['a', '-x', '-y', 'a -x', 'a -y b']
list successes

Detailed Description

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

Definition at line 608 of file

Member Data Documentation

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

Definition at line 611 of file

list test.test_argparse.TestOptionalsNargsOneOrMore.failures = ['a', '-x', '-y', 'a -x', 'a -y b'] [static]

Definition at line 615 of file

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

Definition at line 616 of file

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