summaryrefslogtreecommitdiff
path: root/abc.py
blob: c200d64c52b01104303bf823ade2f86aba7682fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()