コード例 #1
0
ファイル: test_nucname.py プロジェクト: AliZeineddine/pyne
def test_current_form():
    assert_equal(nucname.current_form(922380),   "zzaaam")
    assert_equal(nucname.current_form("922350"), "zzaaam")

    assert_equal(nucname.current_form("U235"),  "name")
    assert_equal(nucname.current_form("h-004"), "name")

    assert_equal(nucname.current_form(92238),   "MCNP")
    assert_equal(nucname.current_form("92235"), "MCNP")
コード例 #2
0
def test_current_form():
    assert_equal(nucname.current_form(922380), "zzaaam")
    assert_equal(nucname.current_form("922350"), "zzaaam")

    assert_equal(nucname.current_form("U235"), "name")
    assert_equal(nucname.current_form("h-004"), "name")

    assert_equal(nucname.current_form(92238), "MCNP")
    assert_equal(nucname.current_form("92235"), "MCNP")
コード例 #3
0
def test_J():
    assert_not_equal(len(rmg.J), 0)
    for iso in rmg.J:
        assert_equal(nucname.current_form(iso), 'zzaaam')