summaryrefslogtreecommitdiff
path: root/docs/api/testing.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-01-07 04:15:27 +0000
committerChris McDonough <chrism@agendaless.com>2009-01-07 04:15:27 +0000
commit7d32df3d33354dc34c1cb0a086463e4f23d968ce (patch)
treedc33728f73b23a35111eb2d6a5a0077426320266 /docs/api/testing.rst
parentd67c741ef82c0a14778c691281139ec364c34a27 (diff)
downloadpyramid-7d32df3d33354dc34c1cb0a086463e4f23d968ce.tar.gz
pyramid-7d32df3d33354dc34c1cb0a086463e4f23d968ce.tar.bz2
pyramid-7d32df3d33354dc34c1cb0a086463e4f23d968ce.zip
- 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.
Diffstat (limited to 'docs/api/testing.rst')
-rw-r--r--docs/api/testing.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/api/testing.rst b/docs/api/testing.rst
index 51b017fbf..9aebc7d30 100644
--- a/docs/api/testing.rst
+++ b/docs/api/testing.rst
@@ -23,4 +23,8 @@
.. autoclass:: DummyRequest
:members:
+ .. autoclass:: DummyTemplateRenderer
+ :members:
+
+