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 11:40:54 +0200
commit33e6a6247ac9ecee577e6ad400b4c9a38a37c001 (patch)
tree3a92701f655d1de5da8b1f4024431589b264e758
parentb07c06a76e75710c6675f0aa5d93bbd63854e0e7 (diff)
downloadcherrypy-git-bugfix/native-http-server-py3.tar.gz
Fix test_native to fail on error responsebugfix/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!'