assertIsNone(val) instead of assertEqual(None,val)
use assertIsNone(val) instead of assertEqual(None, val). Change-Id: I298d1da8838602f58f9e57b1e9c388a43c1a3b7e
This commit is contained in:
parent
36de45dd52
commit
3c5ce7b992
@ -30,8 +30,8 @@ class NetworkUtilsTest(test_base.BaseTestCase):
|
|||||||
def test_no_host(self):
|
def test_no_host(self):
|
||||||
result = netutils.urlsplit('http://')
|
result = netutils.urlsplit('http://')
|
||||||
self.assertEqual('', result.netloc)
|
self.assertEqual('', result.netloc)
|
||||||
self.assertEqual(None, result.port)
|
self.assertIsNone(result.port)
|
||||||
self.assertEqual(None, result.hostname)
|
self.assertIsNone(result.hostname)
|
||||||
self.assertEqual('http', result.scheme)
|
self.assertEqual('http', result.scheme)
|
||||||
|
|
||||||
def test_parse_host_port(self):
|
def test_parse_host_port(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user