From 48db85cb693a74dd382f14f704bf986da2a5b7d3 Mon Sep 17 00:00:00 2001 From: "huang.huayong" Date: Mon, 18 Jul 2016 18:59:05 +0800 Subject: [PATCH] modify test_assert_is_not_none replace self.assertIsNone() to self.assertIsNotNone() in function test_assert_is_not_none. Change-Id: I62098d7039472c7f4c57c8dd669c0ddcb1a54ad2 Closes-Bug: #1603907 --- magnum/tests/unit/test_hacking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magnum/tests/unit/test_hacking.py b/magnum/tests/unit/test_hacking.py index 76eb07b9b9..6842628afc 100644 --- a/magnum/tests/unit/test_hacking.py +++ b/magnum/tests/unit/test_hacking.py @@ -166,7 +166,7 @@ class HackingTestCase(base.TestCase): code = "self.assertEqual(A is not None)" self._assert_has_errors(code, check, errors) - code = "self.assertIsNone()" + code = "self.assertIsNotNone()" self._assert_has_no_errors(code, check) def test_assert_true_isinstance(self):