Package gavo :: Package rscdef :: Module regtest :: Class Keywords
[frames] | no frames]

Class Keywords

source code

               object --+        
                        |        
argparse._AttributeHolder --+    
                            |    
              argparse.Action --+
                                |
                               Keywords

A class encapsulating test selection keywords.

There's a match method that takes a string and returns true if either no keywords are defined or all keywords are present in other (after case folding).

This doubles as an argparse action and as such is "self-parsing" if you will.

Instance Methods
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__call__(self, parser, namespace, values, option_string=None) source code
 
match(self, other) source code

Inherited from argparse._AttributeHolder: __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__call__(self, parser, namespace, values, option_string=None)
(Call operator)

source code 
Overrides: argparse.Action.__call__