summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dummyserver/handlers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/dummyserver/handlers.py b/dummyserver/handlers.py
index 8028b16d..43398cdf 100644
--- a/dummyserver/handlers.py
+++ b/dummyserver/handlers.py
@@ -166,6 +166,14 @@ class TestingApp(RequestHandler):
headers = [('Connection', 'keep-alive')]
return Response('Keeping alive', headers=headers)
+ def sleep(self, request):
+ "Sleep for a specified amount of ``seconds``"
+ # DO NOT USE THIS, IT'S DEPRECATED.
+ # FIXME: Delete this once appengine tests are fixed to not use this handler.
+ seconds = float(request.params.get('seconds', '1'))
+ time.sleep(seconds)
+ return Response()
+
def echo(self, request):
"Echo back the params"
if request.method == 'GET':