remove white space.
This commit is contained in:
@@ -480,7 +480,7 @@ class WebSocketAppTest(unittest.TestCase):
|
|||||||
close the connection.
|
close the connection.
|
||||||
"""
|
"""
|
||||||
WebSocketAppTest.keep_running_open = self.keep_running
|
WebSocketAppTest.keep_running_open = self.keep_running
|
||||||
|
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def on_close(self, *args, **kwargs):
|
def on_close(self, *args, **kwargs):
|
||||||
@@ -534,7 +534,7 @@ class SockOptTest(unittest.TestCase):
|
|||||||
class UtilsTest(unittest.TestCase):
|
class UtilsTest(unittest.TestCase):
|
||||||
def testUtf8Validator(self):
|
def testUtf8Validator(self):
|
||||||
state = validate_utf8(six.b('\xf0\x90\x80\x80'))
|
state = validate_utf8(six.b('\xf0\x90\x80\x80'))
|
||||||
self.assertEqual(state, True)
|
self.assertEqual(state, True)
|
||||||
state = validate_utf8(six.b('\xce\xba\xe1\xbd\xb9\xcf\x83\xce\xbc\xce\xb5\xed\xa0\x80edited'))
|
state = validate_utf8(six.b('\xce\xba\xe1\xbd\xb9\xcf\x83\xce\xbc\xce\xb5\xed\xa0\x80edited'))
|
||||||
self.assertEqual(state, False)
|
self.assertEqual(state, False)
|
||||||
state = validate_utf8(six.b(''))
|
state = validate_utf8(six.b(''))
|
||||||
@@ -569,9 +569,9 @@ class ProxyInfoTest(unittest.TestCase):
|
|||||||
|
|
||||||
self.assertEqual(get_proxy_info("echo.websocket.org", False, http_proxy_host="localhost", http_proxy_auth=("a", "b")),
|
self.assertEqual(get_proxy_info("echo.websocket.org", False, http_proxy_host="localhost", http_proxy_auth=("a", "b")),
|
||||||
("localhost", 0, ("a", "b")))
|
("localhost", 0, ("a", "b")))
|
||||||
self.assertEqual(get_proxy_info("echo.websocket.org", False, http_proxy_host="localhost", http_proxy_port=3128, http_proxy_auth=("a", "b")),
|
self.assertEqual(get_proxy_info("echo.websocket.org", False, http_proxy_host="localhost", http_proxy_port=3128, http_proxy_auth=("a", "b")),
|
||||||
("localhost", 3128, ("a", "b")))
|
("localhost", 3128, ("a", "b")))
|
||||||
self.assertEqual(get_proxy_info("echo.websocket.org", True, http_proxy_host="localhost", http_proxy_auth=("a", "b")),
|
self.assertEqual(get_proxy_info("echo.websocket.org", True, http_proxy_host="localhost", http_proxy_auth=("a", "b")),
|
||||||
("localhost", 0, ("a", "b")))
|
("localhost", 0, ("a", "b")))
|
||||||
self.assertEqual(get_proxy_info("echo.websocket.org", True, http_proxy_host="localhost", http_proxy_port=3128, http_proxy_auth=("a", "b")),
|
self.assertEqual(get_proxy_info("echo.websocket.org", True, http_proxy_host="localhost", http_proxy_port=3128, http_proxy_auth=("a", "b")),
|
||||||
("localhost", 3128, ("a", "b")))
|
("localhost", 3128, ("a", "b")))
|
||||||
@@ -634,6 +634,6 @@ class ProxyInfoTest(unittest.TestCase):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Reference in New Issue
Block a user