예제 #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
예제 #2
0
 def test_infer_clues_node_state_off(self):
     assert mesos.infer_clues_node_state('3', None, ['1', '2', 'active=true']) == NodeInfo.OFF
예제 #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