pyfix

  217 downloads
0.2.3 The Apache License 2.0    
  not rated
A framework for writing automated software tests

description

download

specifications

pyfix is a Python module designed especially for writing test functions.

Install

 pip install pyfix

Usage

Here's an important example:

from pyfix import test, main
from pyassert import assert_that

@test
def ensure_that_two_plus_two_equals_four ():
 assert_that(2 + 2).equals(4)

@test
def ensure_that_two_plus_three_equals_five ():
 assert_that(2 + 3).equals(5)

if __name__ == "__main__":
 main()

If you execute this file you should see the following output:

pyfix version 0.1.1.

Running 2 tests.
--------------------------------------------------------------------------------
Ensure that two plus three equals five: passed [0 ms]
Ensure that two plus two equals four: passed [0 ms]
--------------------------------------------------------------------------------
TEST RESULTS SUMMARY
 2 tests executed
 0 tests failed
ALL TESTS PASSED
READ MORE   
Last updated on September 19th, 2012

0 User reviews so far.

SUBMIT