testing get_all_universes is in DAGMCUniverse

This commit is contained in:
Jonathan Shimwell 2023-02-16 16:20:44 +00:00
parent e6a490ac9c
commit 9e88e706fe

View file

@ -93,10 +93,12 @@ def test_get_all_universes():
u2 = openmc.Universe(cells=[c2])
c3 = openmc.Cell(fill=u1)
c4 = openmc.Cell(fill=u2)
u3 = openmc.Universe(cells=[c3, c4])
u3 = openmc.DAGMCUniverse(filename="")
c5 = openmc.Cell(fill=u3)
u4 = openmc.Universe(cells=[c3, c4, c5])
univs = set(u3.get_all_universes().values())
assert not (univs ^ {u1, u2})
univs = set(u4.get_all_universes().values())
assert not (univs ^ {u1, u2, u3})
def test_clone():