[PATCH 5 of 6 seda] [cleanup] Fix variable name

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 29 10:28:40 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490770479 -7200
#      Wed Mar 29 08:54:39 2017 +0200
# Node ID 8702ac5af4920fa29243d387eb9a97cd8378dbaf
# Parent  93fa9c23f8a7566474517ded82cde5716b6878e0
[cleanup] Fix variable name

diff --git a/test/test_profile_generation.py b/test/test_profile_generation.py
--- a/test/test_profile_generation.py
+++ b/test/test_profile_generation.py
@@ -389,12 +389,12 @@ class SEDA2RNGExportTC(RelaxNGTestMixin,
             fileinfo = self.get_element(profile, 'DataObjectPackage')
             self.assertElementDefinition(fileinfo, {'name': 'DataObjectPackage', 'minOccurs': '0'})
 
             bdo.cw_set(user_cardinality=u'1')
             profile = self.profile_etree(transfer)
-            fileinfo = self.get_element(profile, 'DataObjectPackage')
-            self.assertElementDefinition(fileinfo, {'name': 'DataObjectPackage'})
+            dop = self.get_element(profile, 'DataObjectPackage')
+            self.assertElementDefinition(dop, {'name': 'DataObjectPackage'})
 
     def test_object_package_group(self):
         with self.admin_access.client_cnx() as cnx:
             transfer = cnx.create_entity('SEDAArchiveTransfer', title=u'test profile')
             bdo = cnx.create_entity('SEDABinaryDataObject',


More information about the saem-devel mailing list