Fixing pep8 warning messages

Bug #1017805

Change-Id: I3417215a7a068141b69608e0dc5abaf220ac105d
This commit is contained in:
Edgar Magana 2012-06-25 21:49:16 -07:00
parent f431a143d4
commit 7841b681f1
2 changed files with 12 additions and 13 deletions

View File

@ -74,15 +74,15 @@ DELETE_PROFILE_OUTPUT = ('<configConfMos cookie="cookie_placeholder" '
'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):
@ -160,8 +160,7 @@ class TestUCSDriver(unittest.TestCase):
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
"""

View File

@ -129,8 +129,8 @@ class IptablesManagerStateFulTestCase(unittest.TestCase):
'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('')