The DummyRequest is not "prepared" by add_request_method (I believe 
add_request_method adds a IRequestExtension which is applied by 
Router.invoke_subrequest, see factories.py and router.py). 

In my unit tests I just mock DummyRequest with any **kw I need:

annotations_mock = Mock()
annotations_mock.foo = "bar"
request = DummyRequest(annotations=annotations_mock)


PS: studying pyramid source code gives a lot of insights into the usage of 
ZCA in general - the code is very clean and readable

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to