From 699b37d7a1c863af3dbe93d66631a530bfcfd645 Mon Sep 17 00:00:00 2001 From: Sheng Date: Fri, 16 Nov 2018 11:42:25 +0800 Subject: [PATCH] Updated test_app.py --- tests/test_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_app.py b/tests/test_app.py index bfc21aa..1c7a070 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -122,13 +122,13 @@ class TestAppBasic(AsyncHTTPTestCase): self.assert_response(b'Invalid port', response) def test_app_with_wrong_hostname_ip(self): - body = 'hostname=127.0.0.1&port=7000&username=admin&_xsrf=yummy' + body = 'hostname=127.0.0.2&port=2200&username=admin&_xsrf=yummy' response = self.sync_post(body) self.assertEqual(response.code, 200) self.assertIn(b'Unable to connect to', response.body) def test_app_with_wrong_hostname_domain(self): - body = 'hostname=xxxxxxxxxxxx&port=7000&username=admin&_xsrf=yummy' + body = 'hostname=xxxxxxxxxxxx&port=2200&username=admin&_xsrf=yummy' response = self.sync_post(body) self.assertEqual(response.code, 200) self.assertIn(b'Unable to connect to', response.body)