]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fixing pep8 warning messages
authorEdgar Magana <emagana@gmail.com>
Tue, 26 Jun 2012 04:49:16 +0000 (21:49 -0700)
committerEdgar Magana <emagana@gmail.com>
Tue, 26 Jun 2012 05:27:22 +0000 (22:27 -0700)
Bug #1017805

Change-Id: I3417215a7a068141b69608e0dc5abaf220ac105d

quantum/plugins/cisco/tests/unit/test_ucs_driver.py
quantum/tests/unit/test_iptables_manager.py

index cf6e75ef8ee768566827655e389a395d00016974..c3f74c955c6cc70d75d3b265733ebce0c45b3651 100644 (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
         """
index 33e4ed9c75cd519220fe9b52526f2fbfe4b58c76..6f81fea09cee9b3f9c1d0997d73ddeece0ed1f31 100755 (executable)
@@ -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('')