Commit 096b1277 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update test_06_RecordConf to only check cds records

parent e5772dd2
......@@ -3,7 +3,7 @@
Test specific methods of the RecordConf class for ::
https://cds.cern.ch/record/1411352.
(same as https://inspirehep.net/record/1089237)
(same as https://inspirehep.net/api/literature/1089237)
Prospects for CP violation in B0s --> J/psiphi from first LHCb data
O. Leroy, Symposium on Prospects in the Physics of Discrete Symmetries,
......@@ -25,84 +25,42 @@ from store_tools import load_record
@pytest.fixture(scope="module")
def reccds():
def record():
return load_record("cds.cern.ch", 1411352)
@pytest.fixture(scope="module")
def recins():
return load_record("inspirehep.net", 1089237, shelf="literature")
def test_conference_location_cds_06001(reccds):
assert reccds.conference_location() == "Rome, Italy"
def test_conference_location_ins_06002(recins):
assert recins.conference_location() == "Rome, Italy"
def test_conference_country_cds_06003(reccds):
assert reccds.conference_country() == "Italy"
def test_conference_country_ins_06004(recins):
assert recins.conference_country() == "Italy"
def test_conference_dates_cds_06005(reccds):
assert reccds.conference_dates() == "6 - 11 Dec 2010"
def test_conference_location_cds_06001(record):
assert record.conference_location() == "Rome, Italy"
def test_conference_dates_ins_06006(recins):
assert recins.conference_dates() == "6-11 Dec 2010"
def test_conference_country_cds_06003(record):
assert record.conference_country() == "Italy"
def test_conference_id_cds_06007(reccds):
assert reccds.conference_id() == 1181092
def test_conference_dates_cds_06005(record):
assert record.conference_dates() == "6 - 11 Dec 2010"
def test_conference_id_ins_06008(recins):
assert recins.conference_id() == 980401
def test_conference_id_cds_06007(record):
assert record.conference_id() == 1181092
def test_conference_key_cds_06009(reccds):
assert reccds.conference_key() == "rome20101206"
def test_conference_key_cds_06009(record):
assert record.conference_key() == "rome20101206"
def test_conference_key_ins_06010(recins):
assert recins.conference_key() == "C10-12-06"
def test_conference_title_cds_06011(reccds):
assert reccds.conference_title() == \
def test_conference_title_cds_06011(record):
assert record.conference_title() == \
"Symposium on Prospects in the Physics of Discrete Symmetries"
def test_conference_title_ins_06012(recins):
assert recins.conference_title() == \
"2nd Symposium on Prospects in the Physics of Discrete Symmetries"
def test_conference_town_cds_06013(reccds):
assert reccds.conference_town() == "Rome"
def test_conference_town_ins_06014(recins):
assert recins.conference_town() == "Rome"
def test_conference_url_cds_06015(reccds):
assert reccds.conference_url() == "http://www.roma1.infn.it/discrete10"
def test_conference_url_ins_06016(recins):
assert recins.conference_url() == "http://www.roma1.infn.it/discrete10"
def test_conference_town_cds_06013(record):
assert record.conference_town() == "Rome"
def test_conference_year_cds_06017(reccds):
assert reccds.conference_year() == "2010"
def test_conference_url_cds_06015(record):
assert record.conference_url() == "http://www.roma1.infn.it/discrete10"
def test_conference_year_ins_06018(recins):
assert recins.conference_year() == "2010"
def test_conference_year_cds_06017(record):
assert record.conference_year() == "2010"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment