Skip to content

Commit f9bea5e

Browse files
test_change_implicit_complement_material
1 parent dd8b1e7 commit f9bea5e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/test_dagnav.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,4 +1091,16 @@ def test_set_implicit_complement_material_no_graveyard():
10911091
with pytest.raises(ValueError, match="Could not identify the implicit complement volume."):
10921092
model.implicit_complement_material = 'water'
10931093

1094+
def test_change_implicit_complement_material():
1095+
model = pydagmc.Model()
1096+
graveyard = model.create_volume()
1097+
graveyard.material = 'Graveyard'
1098+
model.implicit_complement_material = 'water'
1099+
assert model.implicit_complement.material == 'water'
1100+
assert model.implicit_complement.material_group.name == 'mat:water_comp'
1101+
1102+
model.implicit_complement.material = 'steel'
1103+
assert model.implicit_complement.material == 'steel'
1104+
assert model.implicit_complement.material_group.name == 'mat:steel_comp'
1105+
10941106

0 commit comments

Comments
 (0)