summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2019-12-17 16:39:14 +0900
committerBrian Haley <haleyb.dev@gmail.com>2020-01-29 16:34:58 +0000
commit33ae5ad4e17fa4b38b5b7b0892d4ea8de2532361 (patch)
tree1f54299b3671c348eb849aefc9b6a43977963085
parente4bad046defeab3dd8847bf752ab96ec5268f01a (diff)
downloadpython-neutronclient-33ae5ad4e17fa4b38b5b7b0892d4ea8de2532361.tar.gz
Fix pep8 errors with hacking 2.0.0
Change-Id: I4737d4bc4fa116f45e2361eba93f48feae0161a4 (cherry picked from commit 91fb009706526ed8d36ca8f2cf57f1763a9af520)
-rw-r--r--neutronclient/tests/unit/osc/v2/logging/test_network_log.py4
-rw-r--r--neutronclient/tests/unit/qos/test_cli20_rule.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/neutronclient/tests/unit/osc/v2/logging/test_network_log.py b/neutronclient/tests/unit/osc/v2/logging/test_network_log.py
index 43c0bcb..d364535 100644
--- a/neutronclient/tests/unit/osc/v2/logging/test_network_log.py
+++ b/neutronclient/tests/unit/osc/v2/logging/test_network_log.py
@@ -139,8 +139,8 @@ class TestCreateNetworkLog(TestNetworkLog):
self.mocked = self.neutronclient.create_network_log
self.cmd = network_log.CreateNetworkLog(self.app, self.namespace)
loggables = {
- "loggable_resources": [{"type": RES_TYPE_SG,
- "type": RES_TYPE_FWG}]
+ "loggable_resources": [{"type": RES_TYPE_SG},
+ {"type": RES_TYPE_FWG}]
}
self.neutronclient.list_network_loggable_resources = mock.Mock(
return_value=loggables)
diff --git a/neutronclient/tests/unit/qos/test_cli20_rule.py b/neutronclient/tests/unit/qos/test_cli20_rule.py
index c1da5af..f77c3c4 100644
--- a/neutronclient/tests/unit/qos/test_cli20_rule.py
+++ b/neutronclient/tests/unit/qos/test_cli20_rule.py
@@ -33,9 +33,9 @@ class CLITestV20QoSRuleJSON(test_cli20.CLITestV20Base):
# qos_rule_types.
resources = 'rule_types'
cmd_resources = 'qos_rule_types'
- response_contents = [{'type': 'bandwidth_limit',
- 'type': 'dscp_marking',
- 'type': 'minimum_bandwidth'}]
+ response_contents = [{'type': 'bandwidth_limit'},
+ {'type': 'dscp_marking'},
+ {'type': 'minimum_bandwidth'}]
cmd = qos_rule.ListQoSRuleTypes(test_cli20.MyApp(sys.stdout),
None)