[TrivialFix] Replace 'assertEqual(None, ...)' with 'assertIsNone(...)'

Change-Id: I06a401e9ed8b45727dbc3be838ac7af6292bc93c
This commit is contained in:
howardlee 2016-10-20 15:48:35 +08:00
parent 27e5d19ec5
commit 69bf513b00

View File

@ -94,7 +94,7 @@ class NetworkUtilsTest(test_base.BaseTestCase):
self.assertEqual(result.netloc, 'user:pass@[::1]') self.assertEqual(result.netloc, 'user:pass@[::1]')
self.assertEqual(result.path, '/v2.0/') self.assertEqual(result.path, '/v2.0/')
self.assertEqual(result.hostname, '::1') self.assertEqual(result.hostname, '::1')
self.assertEqual(result.port, None) self.assertIsNone(result.port)
ipv6_url = 'https://[2001:db8:85a3::8a2e:370:7334]:1234/v2.0/xy?ab#12' ipv6_url = 'https://[2001:db8:85a3::8a2e:370:7334]:1234/v2.0/xy?ab#12'
result = netutils.urlsplit(ipv6_url) result = netutils.urlsplit(ipv6_url)