def test_lsf_nodelist_seq(): os.environ[ "LIBE_RESOURCES_TEST_NODE_LIST"] = 'batch5' + ' g06n02' * 42 + ' h21n18' * 42 exp_out = ['g06n02', 'h21n18'] nodelist = EnvResources.get_lsf_nodelist( node_list_env="LIBE_RESOURCES_TEST_NODE_LIST") assert nodelist == exp_out, "Nodelist returned does not match expected"
def test_lsf_nodelist_empty(): os.environ["LIBE_RESOURCES_TEST_NODE_LIST"] = "" exp_out = [] # empty nodelist = EnvResources.get_lsf_nodelist( node_list_env="LIBE_RESOURCES_TEST_NODE_LIST") assert nodelist == exp_out, "Nodelist returned does not match expected"