diff --git a/tests/test_rpc_server.py b/tests/test_rpc_server.py index b49e53cf1..5c0f6b9fe 100644 --- a/tests/test_rpc_server.py +++ b/tests/test_rpc_server.py @@ -14,7 +14,6 @@ # under the License. import threading -import time from oslo.config import cfg import testscenarios @@ -296,7 +295,7 @@ class TestMultipleServers(test_utils.BaseTestCase, ServerSetupMixin): dict(multi_endpoints=True, expect1=['ds1'], expect2=['ds2'])), - ] + ] @classmethod def generate_scenarios(cls): diff --git a/tests/test_target.py b/tests/test_target.py index 4953f9aae..efe223c70 100644 --- a/tests/test_target.py +++ b/tests/test_target.py @@ -160,8 +160,8 @@ class EqualityTestCase(test_utils.BaseTestCase): s[1]['equals'] = (s[1]['a_value'] == s[1]['b_value']) def test_equality(self): - a_kwargs = {self.attr : self.a_value} - b_kwargs = {self.attr : self.b_value} + a_kwargs = {self.attr: self.a_value} + b_kwargs = {self.attr: self.b_value} a = messaging.Target(**a_kwargs) b = messaging.Target(**b_kwargs)