test_phd_cds2015250_fix.py 477 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# -*- coding: utf-8 -*-
"""PHD

    http://cds.cern.ch/record/2015250



"""
import pytest

from gluon import current
from harvest_tools import format_author_fr
from invenio_tools import CheckAndFix, load_record


def test_these_universities():
    record = load_record('cds.cern.ch', 2015250)

    current.app.inspirehep_institute_id = 9999

    svc = CheckAndFix()
    svc.format_universities(record)

    assert record.these_universities() == [u"Milan Bicocca Université"]