summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlvdongbing <dongbing.lv@kylin-cloud.com>2014-02-25 09:37:47 +0800
committerlvdongbing <dongbing.lv@kylin-cloud.com>2014-02-25 10:46:52 +0800
commit17d7ea26dbe6e1e83cd9868ff1e373dee75031dc (patch)
tree263575c5521a546f1c8053eb7ba72137f71aa30f
parentb5a26b35ac9f05d24d77440f5a5f75d4bf31e69c (diff)
downloadkeystone-17d7ea26dbe6e1e83cd9868ff1e373dee75031dc.tar.gz
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
-rw-r--r--keystone/tests/test_pemutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystone/tests/test_pemutils.py b/keystone/tests/test_pemutils.py
index 5ce654398..b409e2873 100644
--- a/keystone/tests/test_pemutils.py
+++ b/keystone/tests/test_pemutils.py
@@ -256,7 +256,7 @@ class TestPEMParse(tests.TestCase):
text += 'burfl blatz bingo\n'
data = pemutils.get_pem_data(text)
- self.assertEqual(None, data)
+ self.assertIsNone(data)
def test_get_pem_data_invalid(self):
p = PEM(pem_type='xxx',