Back to index

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

List of all members.

Static Public Attributes

list argument_signatures = [Sig('x'), Sig('y', nargs='...'), Sig('-z')]
list failures = ['', '-z', '-z Z']
list successes

Detailed Description

Tests specifying a positional with nargs=REMAINDER

Definition at line 1244 of file

Member Data Documentation

list test.test_argparse.TestNargsRemainder.argument_signatures = [Sig('x'), Sig('y', nargs='...'), Sig('-z')] [static]

Definition at line 1247 of file

list test.test_argparse.TestNargsRemainder.failures = ['', '-z', '-z Z'] [static]

Definition at line 1248 of file

Initial value:
        ('X', NS(x='X', y=[], z=None)),
        ('-z Z X', NS(x='X', y=[], z='Z')),
        ('X A B -z Z', NS(x='X', y=['A', 'B', '-z', 'Z'], z=None)),
        ('X Y --foo', NS(x='X', y=['Y', '--foo'], z=None)),

Definition at line 1249 of file

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