Did I find the right examples for you? yes no

All Samples(6)  |  Call(0)  |  Derive(5)  |  Import(1)

src/w/s/wsgitestcase-0.1/tests.py   wsgitestcase(Download)
import sys
 
from wsgitestcase import WsgiTestCase, WsgiThread
from wsgitestcase import get_cool_unittest
from werkzeug.wrappers import Request, Response
class TestSimpleServer(WsgiTestCase):
 
    def test_simpleserver(self):
        r = requests.get("http://%s:%s/" % (self.host, self.port))
        self.assertEqual(r.text, "hello world")
        self.assertEqual(len(self.requests), 1)
        self.assertEqual(self.requests[0].path, "/")
 
 
class TestOtherApp(WsgiTestCase):
class Test404App(WsgiTestCase):
 
    app = staticmethod(all_404)
 
    def test_404_app(self):
class TestStaticFilesApp(WsgiTestCase):
 
    app = staticmethod(get_static_files_app(CURRENT_DIR))
 
    def test_static_files_app(self):