mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Adding material/cell name tests.
This commit is contained in:
parent
1d075cefdd
commit
542ce3f15e
1 changed files with 2 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ def test_cell(capi_init):
|
|||
assert isinstance(cell.fill, openmc.capi.Material)
|
||||
cell.fill = openmc.capi.materials[1]
|
||||
assert str(cell) == 'Cell[0]'
|
||||
|
||||
assert cell.name == "Fuel"
|
||||
|
||||
def test_cell_temperature(capi_init):
|
||||
cell = openmc.capi.cells[1]
|
||||
|
|
@ -124,6 +124,7 @@ def test_material(capi_init):
|
|||
m.set_density(0.1, 'g/cm3')
|
||||
assert m.density == pytest.approx(0.1)
|
||||
|
||||
assert m.name == "Hot borated water"
|
||||
|
||||
def test_material_add_nuclide(capi_init):
|
||||
m = openmc.capi.materials[3]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue