示例#1
0
文件: tests.py 项目: amcgregor/wsgi2
 def testCGIEnviron(self):
     h = BaseCGIHandler(None,None,None,{})
     h.setup_environ()
     for key in 'web3.url_scheme', 'web3.input', 'web3.errors':
         self.assert_(h.environ.has_key(key))
示例#2
0
文件: tests.py 项目: amcgregor/wsgi2
 def __init__(self,**kw):
     setup_testing_defaults(kw)
     BaseCGIHandler.__init__(
         self, StringIO(''), StringIO(), StringIO(), kw,
         multithread=True, multiprocess=True
     )