Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
dcef58ba
Commit
dcef58ba
authored
Jan 27, 2020
by
LE GAC Renaud
Browse files
Update base/test_07_RecordInst.
parent
6a4d8127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
tests/basis/test_07_RecordInst.py
tests/basis/test_07_RecordInst.py
+7
-7
No files found.
tests/basis/test_07_RecordInst.py
View file @
dcef58ba
...
...
@@ -14,36 +14,36 @@ def record():
return
load_record
(
"inspirehep.net"
,
902989
)
def
test_exception_host
():
def
test_exception_host
_ins_07001
():
record
=
load_record
(
"cds.cern.ch"
,
1951625
)
with
pytest
.
raises
(
RecordException
):
RecordInst
(
record
)
def
test_exception_record
():
def
test_exception_record
_ins_07002
():
record
=
load_record
(
"inspirehep.net"
,
1319638
)
with
pytest
.
raises
(
RecordException
):
RecordInst
(
record
)
def
test_future_identifer
(
record
):
def
test_future_identifer
_ins_07003
(
record
):
assert
record
.
future_identifier
()
==
u
'CPPM, Marseille'
def
test_id
(
record
):
def
test_id
_ins_07004
(
record
):
assert
record
.
id
()
==
902989
def
test_identifier
(
record
):
def
test_identifier
_ins_07005
(
record
):
assert
record
.
identifier
()
==
u
'Marseille, CPPM'
def
test_name
(
record
):
def
test_name
_ins_07006
(
record
):
assert
record
.
name
()
==
\
u
'Centre de Physique des Particules de Marseille (CPPM)'
def
test_rex
(
record
):
def
test_rex
_ins_07007
(
record
):
assert
record
.
rex
()
==
\
r
"Marseille, CPPM|CPPM, Marseille|"
\
"Centre de Physique des Particules de Marseille (CPPM)"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment