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
This commit is contained in:
huang.huayong 2016-07-18 18:59:05 +08:00
parent 7a66c1cf56
commit 48db85cb69
1 changed files with 1 additions and 1 deletions

View File

@ -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):