Skip to content

Commit

Permalink
ENH: Test project's experiment URI is supported by the REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuguetn committed Oct 16, 2020
1 parent 4d1c682 commit 27a0646
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pyxnat/tests/resources_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,18 @@ def test_22_project():
project.datatype()
project.experiments()
project.experiment('nose')


@skip_if_no_network
def test_23_project_experiment():
e1 = central.select.experiment('CENTRAL04_E00637')
e2 = central.select.project('nosetests3').experiment('CENTRAL04_E00637')
e3 = central.select.project('nosetests3').experiment('rs_MR1')
assert (e1._uri == e2._uri == e3._uri)

e4 = central.select.project('nosetests3').subject('rs').experiment('rs_MR1')
assert(len(list(e1.resources())) ==
len(list(e2.resources())) ==
len(list(e3.resources())) ==
len(list(e4.resources())))

0 comments on commit 27a0646

Please sign in to comment.