mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
Add asserts to TestInputReq for app and testapp
This commit is contained in:
parent
bfbb4ab09d
commit
778556d7a0
@ -41,7 +41,9 @@ class InputReqApp(object):
|
|||||||
class TestInputReq(object):
|
class TestInputReq(object):
|
||||||
def setup(self):
|
def setup(self):
|
||||||
self.app = InputReqApp()
|
self.app = InputReqApp()
|
||||||
|
assert self.app
|
||||||
self.testapp = webtest.TestApp(self.app)
|
self.testapp = webtest.TestApp(self.app)
|
||||||
|
assert self.testapp
|
||||||
|
|
||||||
def test_get_direct(self):
|
def test_get_direct(self):
|
||||||
res = self.testapp.get('/test/http://example.com/', headers={'Foo': 'Bar'})
|
res = self.testapp.get('/test/http://example.com/', headers={'Foo': 'Bar'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user