diff options
| author | Chris McDonough <chrism@plope.com> | 2012-03-11 19:16:09 -0700 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-03-11 19:16:09 -0700 |
| commit | b88812d30bfc1d2a92d667f9c1d42097827ad8b0 (patch) | |
| tree | cd2d132b6dc73d32c38d5a15fcab1eae7821f2a4 | |
| parent | ca9f88da0aab4501ec05a9d9ac9a40e131a131dc (diff) | |
| parent | d66d9a6507a983f4a6510ba19a0d4f3e87e39c4b (diff) | |
| download | pyramid-b88812d30bfc1d2a92d667f9c1d42097827ad8b0.tar.gz pyramid-b88812d30bfc1d2a92d667f9c1d42097827ad8b0.tar.bz2 pyramid-b88812d30bfc1d2a92d667f9c1d42097827ad8b0.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
| -rw-r--r-- | docs/narr/introduction.rst | 4 | ||||
| -rw-r--r-- | pyramid/testing.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/introduction.rst b/docs/narr/introduction.rst index 92955aafd..507201439 100644 --- a/docs/narr/introduction.rst +++ b/docs/narr/introduction.rst @@ -260,11 +260,11 @@ Here's a few views defined as methods of a class instead: self.request = request @view_config(route_name='view_one') - def view_one(request): + def view_one(self, request): return Response('one') @view_config(route_name='view_two') - def view_two(request): + def view_two(self, request): return Response('two') See also :ref:`view_config_placement`. diff --git a/pyramid/testing.py b/pyramid/testing.py index 025730ac5..d32a7fe0b 100644 --- a/pyramid/testing.py +++ b/pyramid/testing.py @@ -515,7 +515,7 @@ class DummyTemplateRenderer(object): if myval != v: raise AssertionError( '\nasserted value for %s: %r\nactual value: %r' % ( - v, k, myval)) + k, v, myval)) return True class DummyResource: |
