Pyogp unit testing ~ pyogp.lib.base contains internal tests that validate consistency of the library implementation. Using unittest and doctest, along with wsgi and mock objects, these tests simulate interaction with a grid where needed, or use predefined data where possible, to validate methods and such.
Coverage is unfortunately sparse currently, though, enough examples exist and the api is generally stable enough that tests can reliably be created now.
use Nose! http://somethingaboutorange.com/mrl/projects/nose/0.11.1/
Install Steps:
See http://wiki.secondlife.com/wiki/PyOGP_Package_Unittests for guidance on running tests when operating in pyogp’s buildout.
doctest: add a {class}.txt file to pyogp.lib.base.tests. unittest: add a test_{class}.py file to pyogp.lib.base.tests.
base.py ~ contains the wsgi handlers for certain mock objects (like MockXMLRPC, etc)