Permalink
Browse files

Add a setUp method back to another base test thats missing it.

  • Loading branch information...
ralphbean committed Sep 11, 2013
1 parent c8d8e9a commit 55b6061edf0264426910d1a19f5641ff0c3cf7a0
Showing with 15 additions and 0 deletions.
  1. +15 −0 tw2/core/testbase/base.py
@@ -382,6 +382,21 @@ class TestInPage(Base):
html = "<html><head><title>TITLE</title></head><body>%s</body></html>"
def setUp(self):
global _request_local
_request_local = {}
self.mw = twc.make_middleware(self)
self.app = wt.TestApp(self.mw)
js = twc.JSLink(link='paj')
css = twc.CSSLink(link='joe')
TestWidget = twc.Widget(
template='genshi:tw2.core.test_templates.inner_genshi',
test='test',
)
self.inject_widget = TestWidget(id='a', resources=[js, css])
def __call__(self, environ, start_response):
req = wo.Request(environ)
resp = wo.Response(

0 comments on commit 55b6061

Please sign in to comment.