summaryrefslogtreecommitdiff
path: root/abc.py
diff options
context:
space:
mode:
Diffstat (limited to 'abc.py')
-rw-r--r--abc.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/abc.py b/abc.py
new file mode 100644
index 000000000..c200d64c5
--- /dev/null
+++ b/abc.py
@@ -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()