update test_capi.py

This commit is contained in:
Jingang Liang 2019-02-06 12:59:29 -08:00
parent 5f571a5eaf
commit 0459632e18

View file

@ -130,13 +130,6 @@ def test_nuclide_mapping(capi_init):
assert name == nuc.name
def test_load_nuclide(capi_init):
openmc.capi.load_nuclide('H3')
openmc.capi.load_nuclide('Pu239')
with pytest.raises(exc.DataError):
openmc.capi.load_nuclide('Pu3')
def test_settings(capi_init):
settings = openmc.capi.settings
assert settings.batches == 10
@ -394,3 +387,10 @@ def test_restart(capi_init):
# Compare the keff values.
assert keff0 == pytest.approx(keff1)
def test_load_nuclide(capi_init):
openmc.capi.load_nuclide('H3')
openmc.capi.load_nuclide('Pu239')
with pytest.raises(exc.DataError):
openmc.capi.load_nuclide('Pu3')