summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2019-06-23 11:40:54 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2019-06-23 16:27:24 +0200
commit05dfecc14181816e83f61fbb5d5933a0b2d20225 (patch)
tree38fc76d2c680c440a40c0f37c19ce4aa0203d65e
parent6b9c7429d58592ff96ba1da9b743f0a39f4d17bd (diff)
downloadcherrypy-git-backport/17.x--bugfix--native-http-server-py3.tar.gz
Fix test_native to fail on error responsebackport/17.x--bugfix--native-http-server-py3
Ref: * https://github.com/cherrypy/cherrypy/pull/1712/files#diff-38455dfb545934fdb8aaae27bbfd32adR33
-rw-r--r--cherrypy/test/test_native.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cherrypy/test/test_native.py b/cherrypy/test/test_native.py
index caebc3f4..08bf9997 100644
--- a/cherrypy/test/test_native.py
+++ b/cherrypy/test/test_native.py
@@ -32,4 +32,7 @@ def cp_native_server(request):
def test_basic_request(cp_native_server):
"""A request to a native server should succeed."""
- cp_native_server.get('/')
+ resp = cp_native_server.get('/')
+ assert resp.ok
+ assert resp.status_code == 200
+ assert resp.text == 'Hello World!'