def test_graveyard_1(): # 'mat:graveyard' group exists tag_1 = ['mat:graveyard', 'mat:Nitrogen/rho:-0.001205', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321/rho:-2', 'mat:Lead/rho:-11.35', 'mat:Mercury/rho:-7.874'] assert_equal(gtag.check_matname(tag_1), [ ('Nitrogen', '-0.001205'), ('Steel, Stainless 321', '-2'), ('Lead', '-11.35'), ('Mercury', '-7.874')]) # 'mat:Graveyard' group exists tag_2 = ['mat:Graveyard', 'mat:Nitrogen/rho:-0.001205', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321/rho:-2', 'mat:Lead/rho:-11.35', 'mat:Mercury/rho:-7.874'] assert_equal(gtag.check_matname(tag_2), [ ('Nitrogen', '-0.001205'), ('Steel, Stainless 321', '-2'), ('Lead', '-11.35'), ('Mercury', '-7.874')])
def test_group_6(): # no desnity provided tag_10 = [ 'mat:graveyard', 'mat:Nitrogen', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321', 'mat:Lead', 'mat:Mercury' ] assert_equal(gtag.check_matname(tag_10), [('Nitrogen', ''), ('Steel, Stainless 321', ''), ('Lead', ''), ('Mercury', '')])
def test_graveyard_3(): # graveyard exists as 'graveyard' tag_4 = [ 'graveyard', 'mat:Nitrogen/rho:-0.001205', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321/rho:-2', 'mat:Lead/rho:-11.35', 'mat:Mercury/rho:-7.874' ] assert_equal(gtag.check_matname(tag_4), [('Nitrogen', '-0.001205'), ('Steel, Stainless 321', '-2'), ('Lead', '-11.35'), ('Mercury', '-7.874')])
def test_group_7(): # some densities are provided tag_11 = [ 'mat:graveyard', 'mat:Nitrogen', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321', 'mat:Lead/rho:-11.35', 'mat:Mercury/rho:-7.874' ] assert_equal(gtag.check_matname(tag_11), [('Nitrogen', ''), ('Steel, Stainless 321', ''), ('Lead', '-11.35'), ('Mercury', '-7.874')])
def test_graveyard_1(): # 'mat:graveyard' group exists tag_1 = [ 'mat:graveyard', 'mat:Nitrogen/rho:-0.001205', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321/rho:-2', 'mat:Lead/rho:-11.35', 'mat:Mercury/rho:-7.874' ] assert_equal(gtag.check_matname(tag_1), [('Nitrogen', '-0.001205'), ('Steel, Stainless 321', '-2'), ('Lead', '-11.35'), ('Mercury', '-7.874')]) # 'mat:Graveyard' group exists tag_2 = [ 'mat:Graveyard', 'mat:Nitrogen/rho:-0.001205', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321/rho:-2', 'mat:Lead/rho:-11.35', 'mat:Mercury/rho:-7.874' ] assert_equal(gtag.check_matname(tag_2), [('Nitrogen', '-0.001205'), ('Steel, Stainless 321', '-2'), ('Lead', '-11.35'), ('Mercury', '-7.874')])
def test_group_7(): # some densities are provided tag_11 = ['mat:graveyard', 'mat:Nitrogen', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321', 'mat:Lead/rho:-11.35', 'mat:Mercury/rho:-7.874'] assert_equal(gtag.check_matname(tag_11), [('Nitrogen', ' '), ( 'Steel, Stainless 321', ' '), ('Lead', '-11.35'), ('Mercury', '-7.874')])
def test_group_6(): # no desnity provided tag_10 = ['mat:graveyard', 'mat:Nitrogen', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321', 'mat:Lead', 'mat:Mercury'] assert_equal(gtag.check_matname(tag_10), [('Nitrogen', ' '), ( 'Steel, Stainless 321', ' '), ('Lead', ' '), ('Mercury', ' ')])
def test_graveyard_3(): # graveyard exists as 'graveyard' tag_4 = ['graveyard', 'mat:Nitrogen/rho:-0.001205', 'tally_4.cell.flux.p', 'mat:Steel, Stainless 321/rho:-2', 'mat:Lead/rho:-11.35', 'mat:Mercury/rho:-7.874'] assert_equal(gtag.check_matname(tag_4), [ ('Nitrogen', '-0.001205'), ('Steel, Stainless 321', '-2'), ('Lead', '-11.35'), ('Mercury', '-7.874')])