Back to index

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

List of all members.

Static Public Attributes

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

Detailed Description

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

Definition at line 1228 of file test_argparse.py.


Member Data Documentation

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

Definition at line 1231 of file test_argparse.py.

Definition at line 1232 of file test_argparse.py.

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

Definition at line 1233 of file test_argparse.py.


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