def test_util_matlist(self): mats = dagmc.get_material_set() self.assertEqual(set((0, 5)), mats) mats = dagmc.get_material_set(with_rho=True) self.assertEqual(set([(0, 0.0), (5, 0.5)]), mats)
def util_matlist(): from pyne import dagmc dagmc.load(path) mats1 = dagmc.get_material_set() mats2 = dagmc.get_material_set(with_rho=True) return [mats1, mats2]
def util_matlist(): from pyne import dagmc dagmc.load(path) mats = dagmc.get_material_set() assert_equal(set((0, 5)), mats) mats = dagmc.get_material_set(with_rho=True) assert_equal(set([(0, 0.0), (5, 0.5)]), mats)