Skip to content

Commit

Permalink
Fixing pep8 warning messages
Browse files Browse the repository at this point in the history
Bug #1017805

Change-Id: I3417215a7a068141b69608e0dc5abaf220ac105d
  • Loading branch information
emagana committed Jun 26, 2012
1 parent f431a14 commit 7841b68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
21 changes: 10 additions & 11 deletions quantum/plugins/cisco/tests/unit/test_ucs_driver.py
Expand Up @@ -74,15 +74,15 @@
'status="deleted"> </vnicProfile></pair> '
'</inConfigs> </configConfMos>')

ASSOCIATE_PROFILE_OUTPUT = ('<configConfMos cookie="cookie_placeholder" '
'inHierarchical="true"> <inConfigs> <pair key='
'"fabric/lan/profiles/vnic-New Profile/cl-New '
'Profile Client"> <vmVnicProfCl dcName=".*" '
'descr="" dn="fabric/lan/profiles/vnic-'
'New Profile/cl-New Profile Client"name="New '
'Profile Client" orgPath=".*" status="created" '
'swName="default$"> </vmVnicProfCl>'
'</pair> </inConfigs> </configConfMos>')
ASSOC_PROFILE_OUTPUT = ('<configConfMos cookie="cookie_placeholder" '
'inHierarchical="true"> <inConfigs> <pair key='
'"fabric/lan/profiles/vnic-New Profile/cl-New '
'Profile Client"> <vmVnicProfCl dcName=".*" '
'descr="" dn="fabric/lan/profiles/vnic-'
'New Profile/cl-New Profile Client"name="New '
'Profile Client" orgPath=".*" status="created" '
'swName="default$"> </vmVnicProfCl>'
'</pair> </inConfigs> </configConfMos>')


class TestUCSDriver(unittest.TestCase):
Expand Down Expand Up @@ -160,8 +160,7 @@ def test_delete_profile_post_data(self,
LOG.debug("test_create_profile_post - END")

def test_create_profile_client_data(self,
expected_output=
ASSOCIATE_PROFILE_OUTPUT):
expected_output=ASSOC_PROFILE_OUTPUT):
"""
Tests creation of profile client post Data
"""
Expand Down
4 changes: 2 additions & 2 deletions quantum/tests/unit/test_iptables_manager.py
Expand Up @@ -129,8 +129,8 @@ def test_add_filter_rule(self):
'OUTPUT -j %s-OUTPUT\n-A FORWARD -j %s-FORWARD'
'\n-A %s-filter -j DROP\n-A %s-INPUT -s 0/0 -d'
' 192.168.0.2 -j %s-filter\n' % (bn, bn, bn, bn,
bn, bn, bn, bn, bn, bn, bn, bn)), root_helper=
self.root_helper).AndReturn(None)
bn, bn, bn, bn, bn, bn, bn, bn)),
root_helper=self.root_helper).AndReturn(None)

self.iptables.execute(['/sbin/iptables-save', '-t', 'nat'],
root_helper=self.root_helper).AndReturn('')
Expand Down

0 comments on commit 7841b68

Please sign in to comment.