[TIP] example of Do Fixture in python

Grig Gheorghiu grig at gheorghiu.net
Fri May 18 11:36:12 PDT 2007


--- "Bache, Emily" <Emily.Bache at astrazeneca.com> wrote:

> 
> If anyone could provide a working example of a DoFixture in python I
> would appreciate it.
> 

Examples courtesy of Karen Mishler. Haven't run the code myself, but it
should give you an indication of the syntax required for a DoFixture.

Wiki:

!|DoFixtureSample|
|note|!-<b>-!Testing 123!-</b>-!|
|charge|50|dollars against account|89-64P|
|charge|75|dollars against account|abc|
|charge|100|dollars against account|def|
|check|getIDCustomer|2|
|charge|100|dollars against account|def|
|check|abc|100|customer|first customer|

Fixture code is attached (DoFixtureSample.py).

The PyFIT 0.8a1 docs for DoFixture:

http://www.agilistas.org/PyFIT_0.8a1_Doc/FitLib_DoFixture.htm

HTH,

Grig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DoFixtureSample.py
Type: text/x-python
Size: 842 bytes
Desc: 3807729362-DoFixtureSample.py
Url : http://lists.idyll.org/pipermail/testing-in-python/attachments/20070518/044fa88b/attachment.py 


More information about the testing-in-python mailing list