diff options
Diffstat (limited to 'abc.py')
| -rw-r--r-- | abc.py | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +from pyramid import testing +from pyramid.config import Configurator + + +def total(request, *args): + return sum(args) + + +def prop(request): + print("getting the property") + return "the property" + + +config = Configurator() +config.add_request_method(total) +config.add_request_method(prop, reify=True) + +request = testing.DummyRequest() |
