def test_infer_clues_node_state_used(self): assert mesos.infer_clues_node_state('1', 'active=true', ['1', '2', 'active=true']) == NodeInfo.USED
def test_infer_clues_node_state_off(self): assert mesos.infer_clues_node_state('3', None, ['1', '2', 'active=true']) == NodeInfo.OFF
def test_infer_clues_node_state_idle(self): assert mesos.infer_clues_node_state('1', 'active=false', ['3', '5', 'active=true']) == NodeInfo.IDLE