van.testing 1.0.0
Layers for zope.testing to simplify test setups
Latest Version: 3.0.0
Contents
Testing Utilities
Layers
Some basic layers useful for making test setups.
>>> import os.path >>> from van.testing.layer import zcml_layer, null_layer
A zcml layer which sets up and tears down a zcml test harness (but is much simpler than that provided with zope.app.functional):
>>> class ZCMLLayer: ... zcml = os.path.join(os.path.dirname(__file__), 'ftesting.zcml') >>> zcml_layer(ZCMLLayer)
Some default layers are provided for use with zope.testing, a "null" layer that specifically does nothing. This is useful for layers which inherit from other layers but where you don't want setup/teardown functions run twice (is this a zope.testing bug?):
>>> class ExampleNullLayer(ZCMLLayer): ... pass >>> null_layer(ExampleNullLayer)
Changes
1.0.0 (2008-11-21)
- Initial Release
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| van.testing-1.0.0.tar.gz (md5) | Source | 2008-11-21 00:11:09 | 3KB | 93 | |
- Author: Vanguardistas LLC
- Home Page: http://pypi.python.org/pypi/van.timeformat
- License: ZPL 2.1
- Categories
- Package Index Owner: jinty, gary
- DOAP record: van.testing-1.0.0.xml
Log in to rate this package.
