From 69bf513b00bc7fdac31131b94f00f59576813894 Mon Sep 17 00:00:00 2001 From: howardlee Date: Thu, 20 Oct 2016 15:48:35 +0800 Subject: [PATCH] [TrivialFix] Replace 'assertEqual(None, ...)' with 'assertIsNone(...)' Change-Id: I06a401e9ed8b45727dbc3be838ac7af6292bc93c --- oslo_utils/tests/test_netutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_utils/tests/test_netutils.py b/oslo_utils/tests/test_netutils.py index 405903b8..48ca163a 100644 --- a/oslo_utils/tests/test_netutils.py +++ b/oslo_utils/tests/test_netutils.py @@ -94,7 +94,7 @@ class NetworkUtilsTest(test_base.BaseTestCase): self.assertEqual(result.netloc, 'user:pass@[::1]') self.assertEqual(result.path, '/v2.0/') 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' result = netutils.urlsplit(ipv6_url)