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