TestCenter Reference
|
Public Member Functions | |
def | __init__ (self) |
def | And (self) |
def | With (self) |
def | When (self) |
def | Then (self) |
def | __getattr__ (self, name) |
Context of a BDD test case. Instances of this class are created with Given(). All functions defined with the clause decorators are added to _BDDContext.
def TestSupport.BDD._BDDContext.__init__ | ( | self | ) |
Definition at line 131 of file BDD.py.
References TestSupport.BDD._BDDContext._state.
def TestSupport.BDD._BDDContext.__getattr__ | ( | self, | |
name | |||
) |
Returns Given/When/Then method corresponding to @a name.
Definition at line 170 of file BDD.py.
References TestSupport.BDD._BDDContext._state.
def TestSupport.BDD._BDDContext.And | ( | self | ) |
def TestSupport.BDD._BDDContext.Then | ( | self | ) |
Conjunction for marking the start of the Then part. This method starts the Then part of the sentence describing the desired behavior. It returns the context.
Definition at line 161 of file BDD.py.
References TestSupport.BDD._BDDContext._state.
def TestSupport.BDD._BDDContext.When | ( | self | ) |
Conjunction for marking the start of the When part. This method starts the When part of the sentence describing the desired behavior. It returns the context.
Definition at line 152 of file BDD.py.
References TestSupport.BDD._BDDContext._state.
def TestSupport.BDD._BDDContext.With | ( | self | ) |