test_06_RecordThesis.py 1.14 KB
Newer Older
LE GAC Renaud's avatar
LE GAC Renaud committed
1 2 3
# -*- coding: utf-8 -*-
"""test_06_RecordThesis

LE GAC Renaud's avatar
Polish.  
LE GAC Renaud committed
4
Test specific methods of the RecordThesis class for::
LE GAC Renaud's avatar
LE GAC Renaud committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

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

    Measurement of $t\bar{t}$ spin correlation and W polarization with
    the $t\bar{t}$  di-leptonic channel events at ATLAS
    L. Chen
    10 Dec 2013

No corrections are applied to the record.
Allow to test the brute force decoding with its mistakes.

Note:
    * Only the first author is defined
    * Record submitted is not defined
    * The year is not defined

"""
import pytest
from invenio_tools import load_record


@pytest.fixture(scope="module")
def reccds():
    return load_record("cds.cern.ch", 1632177)


def test_authors_as_list(reccds):
    assert reccds.authors_as_list() == [u'Chen, Liming']


def test_these_defense(reccds):
    assert reccds.these_defense() == "2013-12-10"


def test_these_level(reccds):
    assert reccds.these_level() == "PhD"


def test_these_directors(reccds):
    assert reccds.these_directors(sep=u"|") == \
        "He, Mao|Monnier, Emmanuel|Zhu, Chengguang"


def test_these_universities(reccds):
    assert reccds.these_universities() == "Shandong U. & Marseille, CPPM"