def test_assert_slave_health(): fake_slave_info = { 'master/slaves_active': 10, 'master/slaves_inactive': 10 } output, ok = metastatus_lib.assert_slave_health(fake_slave_info) assert "Slaves: active: 10 inactive: 10" in output assert ok