Back to index

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

List of all members.

Static Public Attributes

list argument_signatures
list failures = ['--bar', '-fbar', '-fbaz', '-bazf', '-b B', 'B']
list successes

Detailed Description

Test an Optional with single- and double-dash option strings

Definition at line 408 of file

Member Data Documentation

Initial value:
        Sig('-f', action='store_true'),
        Sig('-baz', action='store_const', const=42),

Definition at line 411 of file

list test.test_argparse.TestOptionalsSingleDoubleDash.failures = ['--bar', '-fbar', '-fbaz', '-bazf', '-b B', 'B'] [static]

Definition at line 416 of file

Initial value:
        ('', NS(f=False, bar=None, baz=None)),
        ('-f', NS(f=True, bar=None, baz=None)),
        ('--ba B', NS(f=False, bar='B', baz=None)),
        ('-f --bar B', NS(f=True, bar='B', baz=None)),
        ('-f -b', NS(f=True, bar=None, baz=42)),
        ('-ba -f', NS(f=True, bar=None, baz=42)),

Definition at line 417 of file

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