From 542ce3f15e9a85e23103dd69ee71457e173a11f8 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 11 Jul 2019 21:52:09 -0500 Subject: [PATCH] Adding material/cell name tests. --- tests/unit_tests/test_capi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit_tests/test_capi.py b/tests/unit_tests/test_capi.py index d611c20c7e..a5e0e6a206 100644 --- a/tests/unit_tests/test_capi.py +++ b/tests/unit_tests/test_capi.py @@ -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]