diff options
Diffstat (limited to 'chromium/third_party/catapult/common/py_utils/py_utils/ts_proxy_server_unittest.py')
-rw-r--r-- | chromium/third_party/catapult/common/py_utils/py_utils/ts_proxy_server_unittest.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/chromium/third_party/catapult/common/py_utils/py_utils/ts_proxy_server_unittest.py b/chromium/third_party/catapult/common/py_utils/py_utils/ts_proxy_server_unittest.py index 4bb75c8b103..cbc398f9f03 100644 --- a/chromium/third_party/catapult/common/py_utils/py_utils/ts_proxy_server_unittest.py +++ b/chromium/third_party/catapult/common/py_utils/py_utils/ts_proxy_server_unittest.py @@ -2,21 +2,22 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +from __future__ import absolute_import import unittest from py_utils import ts_proxy_server class TsProxyServerTest(unittest.TestCase): def testParseTsProxyPort(self): - self.assertEquals( + self.assertEqual( ts_proxy_server.ParseTsProxyPortFromOutput( 'Started Socks5 proxy server on 127.0.0.1:54430 \n'), 54430) - self.assertEquals( + self.assertEqual( ts_proxy_server.ParseTsProxyPortFromOutput( 'Started Socks5 proxy server on foo.bar.com:430 \n'), 430) - self.assertEquals( + self.assertEqual( ts_proxy_server.ParseTsProxyPortFromOutput( 'Failed to start sock5 proxy.'), None) @@ -44,13 +45,13 @@ class TsProxyServerTest(unittest.TestCase): server.UpdateTrafficSettings(download_bandwidth_kbps=5000) server.UpdateTrafficSettings(upload_bandwidth_kbps=2000) - self.assertEquals(server._rtt, 100) - self.assertEquals(server._inbkps, 5000) - self.assertEquals(server._outkbps, 2000) + self.assertEqual(server._rtt, 100) + self.assertEqual(server._inbkps, 5000) + self.assertEqual(server._outkbps, 2000) server.UpdateTrafficSettings( round_trip_latency_ms=200, download_bandwidth_kbps=500, upload_bandwidth_kbps=2000) - self.assertEquals(server._rtt, 200) - self.assertEquals(server._inbkps, 500) - self.assertEquals(server._outkbps, 2000) + self.assertEqual(server._rtt, 200) + self.assertEqual(server._inbkps, 500) + self.assertEqual(server._outkbps, 2000) |