2008-06-26T10:43:59Z
Dave Pawson.
link
Home
Python TDD
Some time back I took a look at TDD and liked what I saw. I started to use it on a project I was working on, developing it to the point where I forgot about it and just used it. The end result was a test report which I found usable and increased the scope of easy testing.
For other reasons I've just ported it to Python.
Two classes, Test.py and MyWriter.py (used to write - to the console or file). Basic test makes use of an instance as in
x="hello world " tst.assrt(x,"hello world\u009")
I've tested it with int, float and objects. The overloaded methods aren't needed for Python (or so I believe). Enjoy. Zipped classes are here and are GPL
Keywords: python
Comments (View)Return to main index