예제 #1
0
def test_assert_tasks_running():
    fake_tasks_info = {
        'master/tasks_running': 20,
        'master/tasks_staging': 10,
        'master/tasks_starting': 10,
    }
    output, ok = metastatus_lib.assert_tasks_running(fake_tasks_info)
    assert "Tasks: running: 20 staging: 10 starting: 10" in output
    assert ok
예제 #2
0
def test_assert_tasks_running():
    fake_tasks_info = {
        'master/tasks_running': 20,
        'master/tasks_staging': 10,
        'master/tasks_starting': 10,
    }
    output, ok = metastatus_lib.assert_tasks_running(fake_tasks_info)
    assert "Tasks: running: 20 staging: 10 starting: 10" in output
    assert ok