def test_lsf_nodelist_shortform_seq(): os.environ[ "LIBE_RESOURCES_TEST_NODE_LIST"] = 'batch5 1 g06n02 42 h21n18 42' exp_out = ['g06n02', 'h21n18'] nodelist = EnvResources.get_lsf_nodelist_frm_shortform( node_list_env="LIBE_RESOURCES_TEST_NODE_LIST") assert nodelist == exp_out, "Nodelist returned does not match expected"
def test_lsf_nodelist_shortform_empty(): os.environ["LIBE_RESOURCES_TEST_NODE_LIST"] = "" exp_out = [] # empty nodelist = EnvResources.get_lsf_nodelist_frm_shortform(node_list_env="LIBE_RESOURCES_TEST_NODE_LIST") assert nodelist == exp_out, "Nodelist returned does not match expected"