Package lepl :: Package matchers :: Module support :: Class BaseFactoryMatcher
[hide private]
[frames] | no frames]

Class BaseFactoryMatcher

source code


This must be used as a mixin with something that inherits from ArgsAsAttribute (ie the usual matcher classes).
Instance Methods [hide private]
 
__init__(self, *args, **kargs) source code
 
__args_as_attributes(self)
Validate the arguments passed to the constructor against the spec for the factory (necessary because we use *args and so the user doesn't get the feedback they will expect if they make a mistake).
source code
 
factory(self, factory) source code
 
tree_repr(self) source code
 
_cached_matcher(self) source code
Method Details [hide private]

__args_as_attributes(self)

source code 
Validate the arguments passed to the constructor against the spec for the factory (necessary because we use *args and so the user doesn't get the feedback they will expect if they make a mistake). As a side effect we also associated arguments with names and expand defaults so that attributes are more predictable.

factory(self, factory)

source code 
Decorators:
  • @factory.setter

_cached_matcher(self)

source code 
Decorators:
  • @property