def __init__(self, environ=None):
     BFGDummyRequest.__init__(self)
     self.registry.settings = {}
     self.registry.settings['instances'] = DummyInstances()
     if environ is not None:
         self.environ = environ
     self.environ['bfg.foo'] = 'bar'
示例#2
0
文件: test_views.py 项目: dbaty/Lasco
 def __init__(self, *args, **kwargs):
     DummyRequest.__init__(self, *args, **kwargs)
     self.called = []
示例#3
0
 def __init__(self, params=None, environ=None, headers=None, path="/", cookies=None, post=None, **kw):
     DummyRequest.__init__(self, params, environ, headers, path, cookies, post, **kw)
     self.headers["Content-Type"] = "application/json"