Chris McDonough
2009-01-07 7d32df3d33354dc34c1cb0a086463e4f23d968ce
refs
author Chris McDonough <chrism@agendaless.com>
Wednesday, January 7, 2009 05:15 +0100
committer Chris McDonough <chrism@agendaless.com>
Wednesday, January 7, 2009 05:15 +0100
commit7d32df3d33354dc34c1cb0a086463e4f23d968ce
tree dc33728f73b23a35111eb2d6a5a0077426320266 tree | zip | gz
parent d67c741ef82c0a14778c691281139ec364c34a27 view | diff
- Add a method named ``assert_`` to the DummyTemplateRenderer.  This
method accepts keyword arguments. Each key/value pair in the
keyword arguments causes an assertion to be made that the renderer
received this key with a value equal to the asserted value.

- Projects generated by the paster templates now use the
``DummyTemplateRenderer.assert_`` method in their view tests.


8 files modified
109 ■■■■ changed files
CHANGES.txt 8 ●●●●● diff | view | raw | blame | history
docs/api/testing.rst 4 ●●●● diff | view | raw | blame | history
docs/narr/MyProject/myproject/tests.py 2 ●●● diff | view | raw | blame | history
docs/narr/unittesting.rst 9 ●●●●● diff | view | raw | blame | history
repoze/bfg/paster_templates/starter/+package+/tests.py_tmpl 2 ●●● diff | view | raw | blame | history
repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl 2 ●●● diff | view | raw | blame | history
repoze/bfg/testing.py 41 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_testing.py 41 ●●●● diff | view | raw | blame | history