Ejemplo n.º 1
0
 def test_infer_marathon_job_state_pending(self):
     assert mesos.infer_marathon_job_state([], 0) == Request.PENDING
     assert mesos.infer_marathon_job_state([1], 0) == Request.PENDING
     assert mesos.infer_marathon_job_state([1], None) == Request.PENDING
     assert mesos.infer_marathon_job_state(None, None) == Request.PENDING
Ejemplo n.º 2
0
 def test_infer_marathon_job_state_attended(self):
     assert mesos.infer_marathon_job_state([1], 1) == Request.ATTENDED