Exemplo n.º 1
0
 def func():
     raise greentest.ExpectedException(
         'TestAsyncResultAsLinkTarget.test_set_exception')
Exemplo n.º 2
0
 def t1():
     raise greentest.ExpectedException()
Exemplo n.º 3
0
 def application(env, start_response):
     start_response('200 OK', [('Content-Type', 'text/plain')])
     yield "hello"
     raise greentest.ExpectedException('TestErrorAfterChunk')
Exemplo n.º 4
0
 def application(env, start_response):
     start_response('200 OK', [('Content-Type', 'text/plain')])
     raise greentest.ExpectedException('TestError_after_start_response.application')
Exemplo n.º 5
0
 def application(env, start_response):
     raise greentest.ExpectedException('TestError.application')
Exemplo n.º 6
0
 def fail():
     raise greentest.ExpectedException(
         'TestExceptionInMainloop.test_sleep/fail')
Exemplo n.º 7
0
 def handle(self, r):
     raise greentest.ExpectedException('TestException.handle')