From fb7ddd6d8e566197b296a993bc62db43ea9c0195 Mon Sep 17 00:00:00 2001 From: zhufl Date: Tue, 2 Apr 2019 17:08:00 +0800 Subject: [PATCH] Fix misuse of assertFalse The first argument of assertFalse should not be False, otherwise the assertFalse will be useless and always pass. Change-Id: I3b6303ff3d2fb9b5fee1a8d73af4e5819fadde76 --- manila/tests/share/drivers/hdfs/test_hdfs_native.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manila/tests/share/drivers/hdfs/test_hdfs_native.py b/manila/tests/share/drivers/hdfs/test_hdfs_native.py index 8debfbcc15..2cd1ebd237 100644 --- a/manila/tests/share/drivers/hdfs/test_hdfs_native.py +++ b/manila/tests/share/drivers/hdfs/test_hdfs_native.py @@ -414,7 +414,7 @@ class HDFSNativeShareDriverTestCase(test.TestCase): for key in expected_keys: self.assertIn(key, result) self.assertTrue(result['ipv4_support']) - self.assertFalse(False, result['ipv6_support']) + self.assertFalse(result['ipv6_support']) self.assertEqual('HDFS', result['storage_protocol']) self._driver._get_available_capacity.assert_called_once_with()