Drop usage of extras.hasattr
... because the method was already removed from extras[1], and can be easily replaced by the built-in hasattr method. [1] 304c046b05c72c5597f5b0568c08bbd585408973 Change-Id: Ia727f3e031f6162ef7864168f4c7c41c9b38709e
This commit is contained in:
parent
66c6929fc8
commit
5963357bf8
@ -22,7 +22,6 @@ import tempfile
|
||||
|
||||
from os_client_config import cloud_config
|
||||
|
||||
import extras
|
||||
import fixtures
|
||||
from oslotest import base
|
||||
import yaml
|
||||
@ -230,7 +229,7 @@ class TestCase(base.BaseTestCase):
|
||||
|
||||
def _assert_cloud_details(self, cc):
|
||||
self.assertIsInstance(cc, cloud_config.CloudConfig)
|
||||
self.assertTrue(extras.safe_hasattr(cc, 'auth'))
|
||||
self.assertTrue(hasattr(cc, 'auth'))
|
||||
self.assertIsInstance(cc.auth, dict)
|
||||
self.assertIsNone(cc.cloud)
|
||||
self.assertIn('username', cc.auth)
|
||||
|
@ -16,7 +16,6 @@ import argparse
|
||||
import copy
|
||||
import os
|
||||
|
||||
import extras
|
||||
import fixtures
|
||||
import testtools
|
||||
import yaml
|
||||
@ -677,7 +676,7 @@ class TestConfigArgparse(base.TestCase):
|
||||
# Not using assert_cloud_details because of cache settings which
|
||||
# are not present without the file
|
||||
self.assertIsInstance(cc, cloud_config.CloudConfig)
|
||||
self.assertTrue(extras.safe_hasattr(cc, 'auth'))
|
||||
self.assertTrue(hasattr(cc, 'auth'))
|
||||
self.assertIsInstance(cc.auth, dict)
|
||||
self.assertIsNone(cc.cloud)
|
||||
self.assertIn('username', cc.auth)
|
||||
|
@ -5,7 +5,6 @@
|
||||
hacking>=1.1.0,<1.2.0 # Apache-2.0
|
||||
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
extras>=1.0.0 # MIT
|
||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||
jsonschema>=3.2.0 # MIT
|
||||
python-glanceclient>=2.8.0 # Apache-2.0
|
||||
|
Loading…
Reference in New Issue
Block a user