def _get_statusline(params):
    """Generate a mock statusline like py.test would output."""
    info_elements = []
    if 'failed' in params:
        info_elements.append('{failed} failed')
    if 'passed' in params:
        info_elements.append('{passed} passed')
    if 'error' in params:
        info_elements.append('{error} error')
    info_string = ', '.join(info_elements)
    return '=== {0} in 1.00 seconds ==='.format(info_string)