[test] fix some py26 failures
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 24 Oct 2016 10:34:32 +0200
changeset 1952 5e36a73d04ad
parent 1951 cdc88a9ee438
child 1953 34aff5113598
[test] fix some py26 failures
test/test_schema.py
test/test_views.py
--- a/test/test_schema.py	Mon Oct 24 08:37:35 2016 +0200
+++ b/test/test_schema.py	Mon Oct 24 10:34:32 2016 +0200
@@ -76,7 +76,7 @@
     def test_component_archive_unit_rule_constraint(self):
         with self.admin_access.client_cnx() as cnx:
             for rule_type in ('access', 'appraisal'):
-                etype = 'SEDASeq{}RuleRule'.format(rule_type.capitalize())
+                etype = 'SEDASeq{0}RuleRule'.format(rule_type.capitalize())
                 scheme = testutils.scheme_for_type(cnx, 'seda_rule', etype)
                 concept = scheme.add_concept(label=u'whatever')
                 cnx.commit()
--- a/test/test_views.py	Mon Oct 24 08:37:35 2016 +0200
+++ b/test/test_views.py	Mon Oct 24 10:34:32 2016 +0200
@@ -69,7 +69,7 @@
         with self.admin_access.client_cnx() as cnx:
             unit, unit_alt, unit_alt_seq = testutils.create_archive_unit(None, cnx=cnx)
             for rule_type in ('access', 'appraisal'):
-                etype = 'SEDASeq{}RuleRule'.format(rule_type.capitalize())
+                etype = 'SEDASeq{0}RuleRule'.format(rule_type.capitalize())
                 scheme = testutils.scheme_for_type(cnx, 'seda_rule', etype)
                 concept = scheme.add_concept(label=u'whatever')
                 cnx.commit()