consoleText

download

20 Started by upstream project "cubicweb-eac" build number 8
originally caused by:
Started by an SCM change
Building on master in workspace /var/lib/jenkins/jobs/cubicweb-eac/workspace/TOXENV/py27
[py27] $ hg showconfig paths.default
[py27] $ hg pull --rev 73496ee7e8a2c4c0a95e750903e876724d0d82a3
pulling from http://hg.logilab.org/review/cubes/eac
searching for changes
adding changesets
adding manifests
adding file changes
added 3 changesets with 7 changes to 6 files
(run 'hg update' to get a working copy)
[py27] $ hg update --clean --rev 73496ee7e8a2c4c0a95e750903e876724d0d82a3
6 files updated, 0 files merged, 0 files removed, 0 files unresolved
[py27] $ hg --config extensions.purge= clean --all
[py27] $ hg log --rev . --template {node}
[py27] $ hg log --rev . --template {rev}
[py27] $ hg log --rev 7227939e2f224e74c699c9b1885d2da24419a9bc --template exists\n
exists
[py27] $ hg log --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev "ancestors('73496ee7e8a2c4c0a95e750903e876724d0d82a3') and not ancestors(7227939e2f224e74c699c9b1885d2da24419a9bc)" --encoding UTF-8 --encodingmode replace
[py27] $ /bin/bash -xe /tmp/hudson7477612712847780839.sh
+ find . '(' -name 'pgdb*' -o -name 'tmpdb*' ')' -print0
+ xargs -0 rm -rf
[py27] $ /bin/bash -xe /tmp/hudson4924724864363731753.sh
+ PATH=/usr/lib/postgresql/9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ tox --recreate
GLOB sdist-make: /var/lib/jenkins/jobs/cubicweb-eac/workspace/TOXENV/py27/setup.py
py27 create: /var/lib/jenkins/jobs/cubicweb-eac/workspace/TOXENV/py27/.tox/py27
py27 installdeps: pytest, mock, hg+http://hg.logilab.org/review/cubes/prov@ca0310390d07#egg=cubicweb-prov
py27 inst: /var/lib/jenkins/jobs/cubicweb-eac/workspace/TOXENV/py27/.tox/dist/cubicweb-eac-0.2.0.zip
py27 installed: beautifulsoup4==4.3.2,boto==2.34.0,bzr-etckeeper==0.0.0,cffi==0.8.6,characteristic==0.1.0,chardet==2.3.0,Cheetah==2.4.4,cloud-init==0.7.6,colorama==0.3.2,configobj==5.0.6,coverage==3.7.1,croniter==0.3.4,cryptography==0.6.1,cubicweb==3.24.3,cubicweb-addressbook==1.9.1,cubicweb-eac==0.2.0,cubicweb-geocoding==0.2.1,cubicweb-prov==0.2.0,cubicweb-skos==1.0.0,cwclientlib==0.4.1,Cython==0.21.1,decorator==3.4.0,docutils==0.12,ecdsa==0.11,euca2ools==3.1.0,GDAL==1.10.1,hg-evolve==5.4.1,html2text==2016.9.19,html5lib==0.999,isodate==0.5.0,Jinja2==2.7.3,joblib==0.8.3,jsonpatch==1.3,jsonpointer==1.0,linecache2==1.0.0,logilab-common==1.3.0,logilab-constraint==0.6.0,logilab-database==1.15.0,logilab-mtconverter==0.9.0,lxml==3.4.0,M2Crypto==0.21.1,Mako==1.0.0,Markdown==2.5.1,MarkupSafe==0.23,matplotlib==1.4.2,mccabe==0.2.1,mercurial==3.9.1,mock==1.0.1,msgpack-python==0.4.2,mysqlclient==1.3.7,nose==1.3.4,numexpr==2.4,numpy==1.8.2,oauth==1.0.1,openpyxl==1.7.0,pandas==0.14.1,paramiko==1.15.1,passlib==1.7.0,pep8==1.5.7,Pillow==2.6.1,pluggy==0.3.1,ply==3.4,prettytable==0.7.2,psycopg2==2.5.4,py==1.4.31,pyasn1==0.1.7,pyasn1-modules==0.0.5,pycparser==2.10,pycrypto==2.6.1,pycurl==7.19.5,Pygments==2.0.1,pyinotify==0.9.4,pyOpenSSL==0.14,pyparsing==2.0.3,pyserial==2.6,pysqlite==2.6.3,pytest==3.0.5,python-apt==0.9.3.12,python-augeas==0.4.1,python-dateutil==2.2,python-jenkins==0.2.1,python-ldap==2.4.10,python-yapps==2.1.1,python3-ldap==0.9.4.2,pytz==2012rc0,PyYAML==3.11,pyzmq==14.4.0,rdflib==4.1.2,requestbuilder==0.2.3,requests==2.4.3,roman==2.0.0,rql==0.34.1,rubber==1.1,salt==2016.3.0,scikit-learn==0.14.1,scipy==0.14.0,service-identity==1.0.0,Shapely==1.4.3,simplejson==3.6.5,SimpleTAL==4.1,six==1.8.0,SPARQLWrapper==1.6.0,Sphinx==1.2.3,statsmodels==0.4.2,tables==3.1.1,tornado==4.2,tox==2.3.1,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.9.1,virtualenv==15.0.3,xlrd==0.9.2,xlwt==0.7.5,yams==0.44.1,Yapps2==2.2.0
py27 runtests: PYTHONHASHSEED='1520669985'
py27 runtests: commands[0] | /var/lib/jenkins/jobs/cubicweb-eac/workspace/TOXENV/py27/.tox/py27/bin/python -m pytest test
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-3.0.5, py-1.4.31, pluggy-0.4.0
rootdir: /var/lib/jenkins/jobs/cubicweb-eac/workspace/TOXENV/py27, inifile:
collected 30 items

test/test_dataimport.py F.FFFFFFFFF
test/test_entities.py ......F.
test/test_schema.py ...
test/test_views.py ..F.F...

=================================== FAILURES ===================================
____________ EACXMLParserTC.test_agentfunction_within_functions_tag ____________

self = <test_dataimport.EACXMLParserTC testMethod=test_agentfunction_within_functions_tag>

def test_agentfunction_within_functions_tag(self):
"""In FRAD033_EAC_00003.xml, <function> element are within <functions>
not <description>.
"""
entities = self.file_extentities('FRAD033_EAC_00003.xml')
self.assertCountEqual(
> [x.values['name'].pop() for x in entities
if x.etype == 'AgentFunction' and 'name' in x.values],
[u'contr\xf4le', u'collecte', u'classement', u'restauration', u'promotion'])

test/test_dataimport.py:382:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
__________________ EACXMLParserTC.test_mandate_under_mandates __________________

self = <test_dataimport.EACXMLParserTC testMethod=test_mandate_under_mandates>

def test_mandate_under_mandates(self):
"""In FRAD033_EAC_00003.xml, <mandate> element are within <mandates>."""
> entities = list(self.file_extentities('FRAD033_EAC_00003.xml'))

test/test_dataimport.py:357:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
_______________ EACXMLParserTC.test_no_nameentry_authorizedform ________________

self = <test_dataimport.EACXMLParserTC testMethod=test_no_nameentry_authorizedform>

def test_no_nameentry_authorizedform(self):
entities = self.file_extentities(
"Service de l'administration generale et des assemblees.xml")
expected = (u"Gironde. Conseil général. Service de l'administration "
u"générale et des assemblées")
> self.assertIn(expected, [x.values['name'].pop() for x in entities
if x.etype == 'AuthorityRecord'])

test/test_dataimport.py:391:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
_________________ EACXMLParserTC.test_parse_FRAD033_EAC_00001 __________________

self = <test_dataimport.EACXMLParserTC testMethod=test_parse_FRAD033_EAC_00001>

def test_parse_FRAD033_EAC_00001(self):
_gen_extid = map(str, (x for x in count() if x != 2)).next
expected = [
('AuthorityRecord', 'FRAD033_EAC_00001',
{'isni': set([u'22330001300016']),
'name': set([u'Gironde. Conseil général']),
'start_date': set([datetime.date(1800, 1, 1)]),
'end_date': set([datetime.date(2099, 1, 1)]),
'agent_kind': set(['agentkind/authority']),
'record_id': set(['FRAD033_EAC_00001']),
},
),
('EACOtherRecordId', _gen_extid(),
{'eac_other_record_id_of': set(['FRAD033_EAC_00001']),
'value': set([u'1234']),
},
),
('EACOtherRecordId', _gen_extid(),
{'eac_other_record_id_of': set(['FRAD033_EAC_00001']),
'value': set([u'ABCD']),
'local_type': set([u'letters']),
},
),
('EACSource', _gen_extid(),
{'source_agent': set(['FRAD033_EAC_00001']),
'title': set([u'1. Ouvrages imprimés...']),
'description': set([u'des bouquins']),
'description_format': set([u'text/plain']),
},
),
('EACSource', _gen_extid(),
{'source_agent': set(['FRAD033_EAC_00001']),
'url': set([u'http://archives.gironde.fr']),
'title': set([u'Site des Archives départementales de la Gironde']),
},
),
('Activity', _gen_extid(),
{'type': set([u'create']),
'generated': set(['FRAD033_EAC_00001']),
'start': set([datetime.datetime(2013, 4, 24, 5, 34, 41)]),
'end': set([datetime.datetime(2013, 4, 24, 5, 34, 41)]),
'description': set([u'bla bla']),
'description_format': set([u'text/plain']),
},
),
('Activity', _gen_extid(),
{'generated': set(['FRAD033_EAC_00001']),
'type': set([u'modify']),
'start': set([datetime.datetime(2015, 1, 15, 7, 16, 33)]),
'end': set([datetime.datetime(2015, 1, 15, 7, 16, 33)]),
'agent': set([u'Delphine Jamet'])
},
),
('AgentKind', 'agentkind/authority',
{'name': set([u'authority'])},
),
('PostalAddress', _gen_extid(),
{'street': set([u'1 Esplanade Charles de Gaulle']),
'postalcode': set([u'33074']),
'city': set([u' Bordeaux Cedex']),
},
),
('AgentPlace', _gen_extid(),
{'name': set([u'Bordeaux (Gironde, France)']),
'role': set([u'siege']),
'place_agent': set(['FRAD033_EAC_00001']),
'place_address': set(['8']),
'equivalent_concept': set([u'http://catalogue.bnf.fr/ark:/12148/cb152418385']),
},
),
('AgentPlace', _gen_extid(),
{'name': set([u'Toulouse (France)']),
'place_agent': set(['FRAD033_EAC_00001']),
'role': set([u'domicile']),
},
),
('AgentPlace', _gen_extid(),
{'name': set([u'Lit']),
'place_agent': set(['FRAD033_EAC_00001']),
'role': set([u'dodo']),
},
),
('LegalStatus', _gen_extid(),
{'term': set([u'Collectivité territoriale']),
'start_date': set([datetime.date(1234, 1, 1)]),
'end_date': set([datetime.date(3000, 1, 1)]),
'description': set([u'Description du statut']),
'description_format': set([u'text/plain']),
'legal_status_agent': set(['FRAD033_EAC_00001']),
},
),
('Mandate', _gen_extid(),
{'term': set([u'1. Constitutions françaises']),
'description': set([u'Description du mandat']),
'description_format': set([u'text/plain']),
'mandate_agent': set(['FRAD033_EAC_00001']),
},
),
('History', _gen_extid(),
{'text': set(["\n".join((
u'<p xmlns="urn:isbn:1-931666-33-4" '
u'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
u'xmlns:xlink="http://www.w3.org/1999/xlink">{0}</p>'
).format(text) for text in [u"La loi du 22 décembre 1789, en divisant ...",
u"L'inspecteur Canardo"])
]),
'text_format': set([u'text/html']),
'history_agent': set(['FRAD033_EAC_00001']),
'has_citation': set(['15', '16']),
},
),
('Citation', _gen_extid(),
{'uri': set(['http://www.assemblee-nationale.fr/histoire/images-decentralisation/decentralisation/loi-du-22-decembre-1789-.pdf'])}, # noqa
),
('Citation', _gen_extid(),
{'uri': set(['http://pifgadget']), 'note': set(['Voir aussi pifgadget'])},
),
('Structure', _gen_extid(),
{'description': set([u'<p xmlns="urn:isbn:1-931666-33-4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">Pour accomplir ses missions ...</p>']), # noqa
'description_format': set([u'text/html']),
'structure_agent': set(['FRAD033_EAC_00001']),
},
),
('AgentFunction', _gen_extid(),
{'description': set([u'<p xmlns="urn:isbn:1-931666-33-4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">Quatre grands domaines de compétence...</p>']), # noqa
'description_format': set([u'text/html']),
'function_agent': set(['FRAD033_EAC_00001']),
},
),
('AgentFunction', _gen_extid(),
{'name': set([u'action sociale']),
'function_agent': set(['FRAD033_EAC_00001']),
'description': set([u'<p xmlns="urn:isbn:1-931666-33-4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">1. Solidarité\n' # noqa
u' blablabla.</p>']),
'description_format': set([u'text/html']),
'equivalent_concept': set([
u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-200'
]),
},
),
('AgentFunction', _gen_extid(),
{'name': set([u'environnement']),
'function_agent': set(['FRAD033_EAC_00001']),
'equivalent_concept': set([
u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-1074']),
},
),
('Occupation', _gen_extid(),
{'term': set([u'Réunioniste']),
'start_date': set([datetime.date(1987, 1, 1)]),
'end_date': set([datetime.date(2099, 1, 1)]),
'description': set([u'Organisation des réunions ...']),
'description_format': set([u'text/plain']),
'occupation_agent': set(['FRAD033_EAC_00001']),
'has_citation': set(['22']),
'equivalent_concept': set(['http://pifgadget.com']),
},
),
('Citation', _gen_extid(),
{'note': set([u'la bible']),
},
),
('GeneralContext', _gen_extid(),
{'content': set([u'<p xmlns="urn:isbn:1-931666-33-4" '
u'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
u'xmlns:xlink="http://www.w3.org/1999/xlink">very famous</p>']),
'content_format': set([u'text/html']),
'has_citation': set(['24']),
'general_context_of': set(['FRAD033_EAC_00001']),
}
),
('Citation', _gen_extid(),
{'note': set([u'it\'s well known']),
},
),
('AuthorityRecord', 'CG33-DIRADSJ',
{'name': set([u"Gironde. Conseil général. Direction de l'administration et de la "
u"sécurité juridique"]),
'agent_kind': set(['agentkind/unknown-agent-kind']),
},
),
('HierarchicalRelation', _gen_extid(),
{'start_date': set([datetime.date(2008, 1, 1)]),
'end_date': set([datetime.date(2099, 1, 1)]),
'description': set([u'Coucou']),
'description_format': set([u'text/plain']),
'hierarchical_parent': set(['CG33-DIRADSJ']),
'hierarchical_child': set(['FRAD033_EAC_00001']),
},
),
('AuthorityRecord', 'whatever',
{'name': set([u'CG32']),
'agent_kind': set(['agentkind/unknown-agent-kind']),
},
),
('AuthorityRecord', '/dev/null',
{'name': set([u'Trash']),
'agent_kind': set(['agentkind/unknown-agent-kind']),
},
),
('ChronologicalRelation', _gen_extid(),
{'chronological_predecessor': set(['whatever']),
'chronological_successor': set(['FRAD033_EAC_00001']),
},
),
('ChronologicalRelation', _gen_extid(),
{'chronological_predecessor': set(['FRAD033_EAC_00001']),
'chronological_successor': set(['/dev/null']),
'xml_wrap': set(['<gloups xmlns="urn:isbn:1-931666-33-4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">hips</gloups>']), # noqa
},
),
('AssociationRelation', _gen_extid(),
{'association_from': set(['FRAD033_EAC_00001']),
'association_to': set(['agent-x']),
},
),
('EACResourceRelation', _gen_extid(),
{'agent_role': set([u'creatorOf']),
'resource_role': set([u'Fonds d\'archives']),
'resource_relation_resource': set([
'http://gael.gironde.fr/ead.html?id=FRAD033_IR_N']),
'resource_relation_agent': set(['FRAD033_EAC_00001']),
'start_date': set([datetime.date(1673, 1, 1)]),
'end_date': set([datetime.date(1963, 1, 1)]),
'xml_wrap': set(['<he xmlns="urn:isbn:1-931666-33-4" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">joe</he>']), # noqa
},
),
('ExternalUri', 'http://gael.gironde.fr/ead.html?id=FRAD033_IR_N',
{'uri': set([u'http://gael.gironde.fr/ead.html?id=FRAD033_IR_N']),
'cwuri': set([u'http://gael.gironde.fr/ead.html?id=FRAD033_IR_N'])},
),
('ExternalUri', 'agent-x',
{'uri': set([u'agent-x']), 'cwuri': set([u'agent-x'])},
),
('ExternalUri', 'http://data.culture.fr/thesaurus/page/ark:/67717/T1-200',
{'uri': set([u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-200']),
'cwuri': set([u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-200'])},
),
('ExternalUri', 'http://data.culture.fr/thesaurus/page/ark:/67717/T1-1074',
{'uri': set([u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-1074']),
'cwuri': set([u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-1074'])},
),
('ExternalUri', 'http://catalogue.bnf.fr/ark:/12148/cb152418385',
{'uri': set([u'http://catalogue.bnf.fr/ark:/12148/cb152418385']),
'cwuri': set([u'http://catalogue.bnf.fr/ark:/12148/cb152418385'])},
),
('ExternalUri', 'http://pifgadget.com',
{'uri': set([u'http://pifgadget.com']),
'cwuri': set([u'http://pifgadget.com'])},
),
]
expected = [ExtEntity(*vals) for vals in expected]
fpath = self.datapath('FRAD033_EAC_00001_simplified.xml')
import_log = SimpleImportLog(fpath)
# Use a predictable extid_generator.
extid_generator = map(str, count()).next
importer = dataimport.EACCPFImporter(fpath, import_log, mock_,
extid_generator=extid_generator)
> entities = list(importer.external_entities())

test/test_dataimport.py:332:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
____________________ EACDataImportTC.test_FRAD033_EAC_00001 ____________________

self = <test_dataimport.EACDataImportTC testMethod=test_FRAD033_EAC_00001>

def test_FRAD033_EAC_00001(self):
fpath = self.datapath('FRAD033_EAC_00001_simplified.xml')
with self.admin_access.repo_cnx() as cnx:
# create a skos concept to ensure it's used instead of a ExternalUri
scheme = cnx.create_entity('ConceptScheme')
scheme.add_concept(u'environnement',
cwuri=u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-1074')
cnx.commit()
> created, updated = testutils.eac_import(cnx, fpath)

test/test_dataimport.py:452:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/testutils.py:41: in eac_import
raise_on_error=True)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:934: in call_service
return service.call(**kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:50: in call
stream, import_log, store, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:74: in import_eac_stream
stream, import_log, store, extid2eid=extid2eid, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:90: in _import_eac_stream
importer.import_entities(extentities)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:310: in import_entities
deferred = self._import_entities(ext_entities, queue)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:319: in _import_entities
for ext_entity in self.iter_ext_entities(ext_entities, deferred, queue):
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:336: in iter_ext_entities
for ext_entity in ext_entities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:108: in handle_agent_kind
for extentity in extentities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:101: in <genexpr>
extentities = (ee for ee in extentities
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
----------------------------- Captured stdout call -----------------------------
-> creating tables
-> inserting default user and default groups.
-> storing the schema in the database
-> database for instance data initialized.
____________________ EACDataImportTC.test_create_agent_once ____________________

self = <test_dataimport.EACDataImportTC testMethod=test_create_agent_once>

def test_create_agent_once(self):
fpath = self.datapath('FRAD033_EAC_00071.xml')
with self.admin_access.repo_cnx() as cnx:
> created, updated = testutils.eac_import(cnx, fpath)

test/test_dataimport.py:574:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/testutils.py:41: in eac_import
raise_on_error=True)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:934: in call_service
return service.call(**kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:50: in call
stream, import_log, store, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:74: in import_eac_stream
stream, import_log, store, extid2eid=extid2eid, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:90: in _import_eac_stream
importer.import_entities(extentities)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:310: in import_entities
deferred = self._import_entities(ext_entities, queue)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:319: in _import_entities
for ext_entity in self.iter_ext_entities(ext_entities, deferred, queue):
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:336: in iter_ext_entities
for ext_entity in ext_entities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:108: in handle_agent_kind
for extentity in extentities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:101: in <genexpr>
extentities = (ee for ee in extentities
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
____________________ EACDataImportTC.test_multiple_imports _____________________

self = <test_dataimport.EACDataImportTC testMethod=test_multiple_imports>

def test_multiple_imports(self):
def count_entity(cnx, etype):
return cnx.execute('Any COUNT(X) WHERE X is %s' % etype)[0][0]

with self.admin_access.repo_cnx() as cnx:
nb_records_before = count_entity(cnx, 'AuthorityRecord')
for fname in ('FRAD033_EAC_00001.xml', 'FRAD033_EAC_00003.xml',
'FRAD033_EAC_00071.xml'):
fpath = self.datapath(fname)
> created, updated = testutils.eac_import(cnx, fpath)

test/test_dataimport.py:586:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/testutils.py:41: in eac_import
raise_on_error=True)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:934: in call_service
return service.call(**kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:50: in call
stream, import_log, store, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:74: in import_eac_stream
stream, import_log, store, extid2eid=extid2eid, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:90: in _import_eac_stream
importer.import_entities(extentities)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:310: in import_entities
deferred = self._import_entities(ext_entities, queue)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:319: in _import_entities
for ext_entity in self.iter_ext_entities(ext_entities, deferred, queue):
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:336: in iter_ext_entities
for ext_entity in ext_entities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:108: in handle_agent_kind
for extentity in extentities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:101: in <genexpr>
extentities = (ee for ee in extentities
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
______________________ EACDataImportTC.test_no_name_entry ______________________

self = <test_dataimport.EACDataImportTC testMethod=test_no_name_entry>

def test_no_name_entry(self):
with self.admin_access.repo_cnx() as cnx:
with self.assertRaises(dataimport.MissingTag) as cm:
> testutils.eac_import(cnx, self.datapath('no_name_entry.xml'))

test/test_dataimport.py:602:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/testutils.py:41: in eac_import
raise_on_error=True)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:934: in call_service
return service.call(**kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:50: in call
stream, import_log, store, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:74: in import_eac_stream
stream, import_log, store, extid2eid=extid2eid, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:90: in _import_eac_stream
importer.import_entities(extentities)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:310: in import_entities
deferred = self._import_entities(ext_entities, queue)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:319: in _import_entities
for ext_entity in self.iter_ext_entities(ext_entities, deferred, queue):
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:336: in iter_ext_entities
for ext_entity in ext_entities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:108: in handle_agent_kind
for extentity in extentities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:101: in <genexpr>
extentities = (ee for ee in extentities
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
___________________ EACDataImportTC.test_no_name_entry_part ____________________

self = <test_dataimport.EACDataImportTC testMethod=test_no_name_entry_part>

def test_no_name_entry_part(self):
with self.admin_access.repo_cnx() as cnx:
with self.assertRaises(dataimport.MissingTag) as cm:
> testutils.eac_import(cnx, self.datapath('no_name_entry_part.xml'))

test/test_dataimport.py:609:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/testutils.py:41: in eac_import
raise_on_error=True)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:934: in call_service
return service.call(**kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:50: in call
stream, import_log, store, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:74: in import_eac_stream
stream, import_log, store, extid2eid=extid2eid, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:90: in _import_eac_stream
importer.import_entities(extentities)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:310: in import_entities
deferred = self._import_entities(ext_entities, queue)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:319: in _import_entities
for ext_entity in self.iter_ext_entities(ext_entities, deferred, queue):
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:336: in iter_ext_entities
for ext_entity in ext_entities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:108: in handle_agent_kind
for extentity in extentities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:101: in <genexpr>
extentities = (ee for ee in extentities
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
______________________ EACDataImportTC.test_unknown_kind _______________________

self = <test_dataimport.EACDataImportTC testMethod=test_unknown_kind>

def test_unknown_kind(self):
with self.admin_access.repo_cnx() as cnx:
> testutils.eac_import(cnx, self.datapath('custom_kind.xml'))

test/test_dataimport.py:592:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/testutils.py:41: in eac_import
raise_on_error=True)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:934: in call_service
return service.call(**kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:50: in call
stream, import_log, store, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:74: in import_eac_stream
stream, import_log, store, extid2eid=extid2eid, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:90: in _import_eac_stream
importer.import_entities(extentities)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:310: in import_entities
deferred = self._import_entities(ext_entities, queue)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:319: in _import_entities
for ext_entity in self.iter_ext_entities(ext_entities, deferred, queue):
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:336: in iter_ext_entities
for ext_entity in ext_entities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:108: in handle_agent_kind
for extentity in extentities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:101: in <genexpr>
extentities = (ee for ee in extentities
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
____________________ AuthorityRecordExportTC.test_roundtrip ____________________

self = <test_entities.AuthorityRecordExportTC testMethod=test_roundtrip>

def test_roundtrip(self):
fpath = self.datapath('FRAD033_EAC_00001_simplified_export.xml')
with self.admin_access.client_cnx() as cnx:
> created, updated = testutils.eac_import(cnx, fpath)

test/test_entities.py:178:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/share/cubicweb/cubes/eac/testutils.py:41: in eac_import
raise_on_error=True)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:934: in call_service
return service.call(**kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:50: in call
stream, import_log, store, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:74: in import_eac_stream
stream, import_log, store, extid2eid=extid2eid, **kwargs)
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:90: in _import_eac_stream
importer.import_entities(extentities)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:310: in import_entities
deferred = self._import_entities(ext_entities, queue)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:319: in _import_entities
for ext_entity in self.iter_ext_entities(ext_entities, deferred, queue):
.tox/py27/local/lib/python2.7/site-packages/cubicweb/dataimport/importer.py:336: in iter_ext_entities
for ext_entity in ext_entities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:108: in handle_agent_kind
for extentity in extentities:
.tox/py27/share/cubicweb/cubes/eac/sobjects.py:101: in <genexpr>
extentities = (ee for ee in extentities
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:85: in wrapper
for extentity in func(self, *args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:348: in external_entities
for extentity in self.parse_control(control):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:75: in wrapped
for x in func(*args, **kwargs):
.tox/py27/share/cubicweb/cubes/eac/dataimport.py:848: in parse_control
namespaces=self.namespaces):
lxml.etree.pyx:1495: in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:52246)
???
xpath.pxi:261: in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:151647)
???
xpath.pxi:133: in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:149994)
???
xpath.pxi:57: in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:148988)
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> ???
E TypeError: empty namespace prefix is not supported in XPath

extensions.pxi:84: TypeError
_____________________ FuncViewsTC.test_import_missing_tag ______________________

self = <test_views.FuncViewsTC testMethod=test_import_missing_tag>

def test_import_missing_tag(self):
regid = 'eac.import'
fname = 'missing_tag.xml'
with self.admin_access.web_request() as req:
fields = {'file': (fname, open(self.datapath(fname)))}
req.form = self.fake_form(regid, fields)
# now actually test the import
html = req.view(regid)
> self.assertIn('Missing tag cpfDescription in XML file', html)
E AssertionError: 'Missing tag cpfDescription in XML file' not found in u'<h1>Importing an AuthorityRecord from a EAC-CPF file</h1><div class="alert alert-danger">EAC import failed</div>\n<form action="#"><fieldset><label>Message threshold</label><select class="log_filter" onchange="filterLog(\'logTable59a4fd96ae9a4ae380f879986ca92b9c\', this.options[this.selectedIndex].value)"><option value="Debug">DEBUG</option><option value="Info">INFO</option><option value="Warning">WARNING</option><option value="Error">ERROR</option><option value="Fatal">FATAL</option></select></fieldset></form><div id="logTable59a4fd96ae9a4ae380f879986ca92b9c"><table class="listing" id="tablelogTable59a4fd96ae9a4ae380f879986ca92b9c"><thead><tr><th class="sortable">severity</th><th>url</th><th>line</th><th>message</th></tr></thead>\n<tbody><tr class="logDebug" id="log_msg_0" onmouseout="$(this).removeClass("highlighted")" onmouseover="$(this).addClass("highlighted");"><td class="logSeverity" cubicweb:sortvalue="10"><a class="internallink" href="javascript:;" title="permalink to this message" onclick="document.location.hash=\'log_msg_0\';">¶</a> DEBUG</td><td class="logPath">missing_tag.xml</td><td class="logLine"> </td><td class="logMsg"><pre class="rawtext">importing entities</pre></td></tr>\n<tr class="logFatal" id="log_msg_1" onmouseout="$(this).removeClass("highlighted")" onmouseover="$(this).addClass("highlighted");"><td class="logSeverity" cubicweb:sortvalue="50"><a class="internallink" href="javascript:;" title="permalink to this message" onclick="document.location.hash=\'log_msg_1\';">¶</a> FATAL</td><td class="logPath">missing_tag.xml</td><td class="logLine"> </td><td class="logMsg"><pre class="rawtext">empty namespace prefix is not supported in XPath</pre></td></tr>\n</tbody></table></div>'

test/test_views.py:83: AssertionError
__________________________ FuncViewsTC.test_import_ok __________________________

self = <test_views.FuncViewsTC testMethod=test_import_ok>

def test_import_ok(self):
regid = 'eac.import'
fname = 'FRAD033_EAC_00001_simplified.xml'
with self.admin_access.web_request() as req:
# simply test the form properly render and is well formed
self.view(regid, req=req, template=None)
fields = {'file': (fname, open(self.datapath(fname)))}
req.form = self.fake_form(regid, fields)
# now actually test the import
req.view(regid)
> req.find('Agent', name=u'Delphine Jamet').one()

test/test_views.py:44:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27/local/lib/python2.7/site-packages/cubicweb/req.py:218: in find
eschema = self.vreg.schema.eschema(etype)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cubicweb.schema.CubicWebSchema object at 0x7fd3f10f1450>
etype = 'Agent'

def eschema(self, etype):
"""return the entity's schema for the given type

:rtype: `EntitySchema`
:raise `KeyError`: if the type is not defined as an entity
"""
try:
return self._entities[etype]
except KeyError:
if isinstance(etype, tuple):
etype = list(etype)
> raise KeyError('No entity named %s in schema' % etype)
E KeyError: 'No entity named Agent in schema'

.tox/py27/local/lib/python2.7/site-packages/yams/schema.py:1211: KeyError
==================== 13 failed, 17 passed in 27.10 seconds =====================
ERROR: InvocationError: '/var/lib/jenkins/jobs/cubicweb-eac/workspace/TOXENV/py27/.tox/py27/bin/python -m pytest test'
___________________________________ summary ____________________________________
ERROR: py27: commands failed
Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[py27] $ /bin/bash -xe /tmp/hudson2153902049695711305.sh
+ /var/lib/jenkins/scripts/notify_forge_apycot.py cwo cubicweb-eac 73496ee7e8a2 http://jenkins.logilab.fr/job/cubicweb-eac/TOXENV=py27/8/ --status failure
<br/>

log from execution
download