Implement testAsync for python tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666412 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/py/TestServer.py b/test/py/TestServer.py
index 0247bc2..bef5409 100755
--- a/test/py/TestServer.py
+++ b/test/py/TestServer.py
@@ -59,6 +59,11 @@
time.sleep(seconds)
print 'done sleeping'
+ def testAsync(self, seconds):
+ print 'testAsync(%d) => sleeping...' % seconds
+ time.sleep(seconds)
+ print 'done sleeping'
+
handler = TestHandler()
processor = ThriftTest.Processor(handler)
transport = TSocket.TServerSocket(9090)