def test_marathon_tasks(mock_get_marathon_client): client = mock_get_marathon_client.return_value client.list_tasks.return_value = ["MarathonTask:1"] output, ok = metastatus_lib.assert_marathon_tasks(client) assert "marathon tasks: 1" in output assert ok
def test_marathon_tasks(mock_get_marathon_client): client = mock_get_marathon_client.return_value client.list_tasks.return_value = ["MarathonTask:1"] output, ok = metastatus_lib.assert_marathon_tasks(client) assert "marathon tasks: 1" in output assert ok
def test_marathon_tasks(): client = Mock() client.list_tasks.return_value = ["MarathonTask:1"] output, ok = metastatus_lib.assert_marathon_tasks([client]) assert re.match("marathon tasks: +1", output) assert ok