diff options
author | Javeme <zhangmei.li@easystack.cn> | 2015-12-21 19:09:18 +0800 |
---|---|---|
committer | Javeme <zhangmei.li@easystack.cn> | 2015-12-21 19:10:49 +0800 |
commit | 609fc1e01b61ea2580474b4159686296c3bfbb36 (patch) | |
tree | a16dc87974ea80f4650c773d95d639e85a0969ee /oslo_middleware | |
parent | 61a4da443103d60bc916cd1e3c1a658dba817d2f (diff) | |
download | oslo-middleware-609fc1e01b61ea2580474b4159686296c3bfbb36.tar.gz |
assertIsNone(val) instead of assertEqual(None,val)
use assertIsNone(val) instead of assertEqual(None, val).
Change-Id: I8cb1e27d06178f37fc4a6f91892bf3fc78599594
Diffstat (limited to 'oslo_middleware')
-rw-r--r-- | oslo_middleware/tests/test_cors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_middleware/tests/test_cors.py b/oslo_middleware/tests/test_cors.py index de91c34..8df428b 100644 --- a/oslo_middleware/tests/test_cors.py +++ b/oslo_middleware/tests/test_cors.py @@ -131,7 +131,7 @@ class CORSTestFilterFactory(test_base.BaseTestCase): config = application.allowed_origins['http://valid.example.com'] self.assertEqual(False, config['allow_credentials']) - self.assertEqual(None, config['max_age']) + self.assertIsNone(config['max_age']) self.assertEqual([], config['expose_headers']) self.assertEqual(['GET'], config['allow_methods']) self.assertEqual([], config['allow_headers']) |