Back to index

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

List of all members.

Static Public Attributes

tuple parser_signature = Sig(prefix_chars='+:/', add_help=False)
list argument_signatures
list failures = ['--bar', '-fbar', '-b B', 'B', '-f', '--bar B', '-baz', '-h', '--help', '+h', '::help', '/help']
list successes

Detailed Description

Test an Optional with option strings with custom prefixes

Definition at line 427 of file

Member Data Documentation

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

Definition at line 431 of file

list test.test_argparse.TestOptionalsAlternatePrefixChars.failures = ['--bar', '-fbar', '-b B', 'B', '-f', '--bar B', '-baz', '-h', '--help', '+h', '::help', '/help'] [static]

Definition at line 436 of file

tuple test.test_argparse.TestOptionalsAlternatePrefixChars.parser_signature = Sig(prefix_chars='+:/', add_help=False) [static]

Definition at line 430 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 437 of file

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