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,7 +74,7 @@ DELETE_PROFILE_OUTPUT = ('<configConfMos cookie="cookie_placeholder" '
'status="deleted"> </vnicProfile></pair> ' 'status="deleted"> </vnicProfile></pair> '
'</inConfigs> </configConfMos>') '</inConfigs> </configConfMos>')
ASSOCIATE_PROFILE_OUTPUT = ('<configConfMos cookie="cookie_placeholder" ' ASSOC_PROFILE_OUTPUT = ('<configConfMos cookie="cookie_placeholder" '
'inHierarchical="true"> <inConfigs> <pair key=' 'inHierarchical="true"> <inConfigs> <pair key='
'"fabric/lan/profiles/vnic-New Profile/cl-New ' '"fabric/lan/profiles/vnic-New Profile/cl-New '
'Profile Client"> <vmVnicProfCl dcName=".*" ' 'Profile Client"> <vmVnicProfCl dcName=".*" '
@ -160,8 +160,7 @@ class TestUCSDriver(unittest.TestCase):
LOG.debug("test_create_profile_post - END") LOG.debug("test_create_profile_post - END")
def test_create_profile_client_data(self, def test_create_profile_client_data(self,
expected_output= expected_output=ASSOC_PROFILE_OUTPUT):
ASSOCIATE_PROFILE_OUTPUT):
""" """
Tests creation of profile client post Data 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' 'OUTPUT -j %s-OUTPUT\n-A FORWARD -j %s-FORWARD'
'\n-A %s-filter -j DROP\n-A %s-INPUT -s 0/0 -d' '\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, ' 192.168.0.2 -j %s-filter\n' % (bn, bn, bn, bn,
bn, bn, bn, bn, bn, bn, bn, bn)), root_helper= bn, bn, bn, bn, bn, bn, bn, bn)),
self.root_helper).AndReturn(None) root_helper=self.root_helper).AndReturn(None)
self.iptables.execute(['/sbin/iptables-save', '-t', 'nat'], self.iptables.execute(['/sbin/iptables-save', '-t', 'nat'],
root_helper=self.root_helper).AndReturn('') root_helper=self.root_helper).AndReturn('')