Browse Source

Replace assertEqual(None, *) with assertIsNone in tests

Replace assertEqual(None, *) with assertIsNone in keystone's tests
to havemore clear messages in case of failure.

Closes-Bug: #1280522
Change-Id: I5a857fcb3bfebc6ff14871df6b2cd1dee44596b2
tags/2014.1.b3
lvdongbing 5 years ago
parent
commit
17d7ea26db
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      keystone/tests/test_pemutils.py

+ 1
- 1
keystone/tests/test_pemutils.py View File

@@ -256,7 +256,7 @@ class TestPEMParse(tests.TestCase):
256 256
         text += 'burfl blatz bingo\n'
257 257
 
258 258
         data = pemutils.get_pem_data(text)
259
-        self.assertEqual(None, data)
259
+        self.assertIsNone(data)
260 260
 
261 261
     def test_get_pem_data_invalid(self):
262 262
         p = PEM(pem_type='xxx',

Loading…
Cancel
Save