commit d0542e72c616af0c73086056a87f01f7f307c47f
parent 8e4039a24afba9ce599b7271b085c8781659a4a5
Author: Sheng <webmaster0115@gmail.com>
Date: Sun, 21 Oct 2018 14:45:58 +0800
Fixed test_get_redirect_url
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_handler.py b/tests/test_handler.py
@@ -67,13 +67,13 @@ class TestMixinHandler(unittest.TestCase):
uri = '/'
port = 443
- self.assertTrue(
+ self.assertEqual(
handler.get_redirect_url(hostname, port, uri=uri),
'https://www.example.com/'
)
port = 4433
- self.assertTrue(
+ self.assertEqual(
handler.get_redirect_url(hostname, port, uri),
'https://www.example.com:4433/'
)