Exemplo n.º 1
0
 def test_serving(self):
     server, addr = run_dev_server(test_app)
     rv = urlopen('http://%s/?foo=bar&baz=blah' % addr).read()
     self.assert_in(b'WSGI Information', rv)
     self.assert_in(b'foo=bar&baz=blah', rv)
     self.assert_in(b'Werkzeug/' + version.encode('ascii'), rv)
Exemplo n.º 2
0
def test_serving(dev_server):
    server = dev_server('from werkzeug.testapp import test_app as app')
    rv = requests.get('http://%s/?foo=bar&baz=blah' % server.addr).content
    assert b'WSGI Information' in rv
    assert b'foo=bar&baz=blah' in rv
    assert b'Werkzeug/' + version.encode('ascii') in rv
Exemplo n.º 3
0
def test_serving(dev_server):
    server = dev_server("from werkzeug.testapp import test_app as app")
    rv = requests.get("http://%s/?foo=bar&baz=blah" % server.addr).content
    assert b"WSGI Information" in rv
    assert b"foo=bar&baz=blah" in rv
    assert b"Werkzeug/" + version.encode("ascii") in rv
Exemplo n.º 4
0
def test_serving(dev_server):
    server, addr = dev_server(_test_app)
    rv = urlopen('http://%s/?foo=bar&baz=blah' % addr).read()
    assert b'WSGI Information' in rv
    assert b'foo=bar&baz=blah' in rv
    assert b'Werkzeug/' + version.encode('ascii') in rv
Exemplo n.º 5
0
 def test_serving(self):
     server, addr = run_dev_server(test_app)
     rv = urlopen('http://%s/?foo=bar&baz=blah' % addr).read()
     self.assert_in(b'WSGI Information', rv)
     self.assert_in(b'foo=bar&baz=blah', rv)
     self.assert_in(b'Werkzeug/' + version.encode('ascii'), rv)
Exemplo n.º 6
0
 def test_serving(self):
     server, addr = run_dev_server(test_app)
     rv = urlopen("http://%s/?foo=bar&baz=blah" % addr).read()
     self.assert_in(b"WSGI Information", rv)
     self.assert_in(b"foo=bar&baz=blah", rv)
     self.assert_in(b"Werkzeug/" + version.encode("ascii"), rv)
Exemplo n.º 7
0
def test_serving(dev_server):
    server = dev_server("from werkzeug.testapp import test_app as app")
    rv = requests.get("http://%s/?foo=bar&baz=blah" % server.addr).content
    assert b"WSGI Information" in rv
    assert b"foo=bar&baz=blah" in rv
    assert b"Werkzeug/" + version.encode("ascii") in rv