def convert_bool(s):
    """Convert input string to boolean.

    Input string must either be ``True`` or ``False``.
    """
    if s == 'True':
        return True
    elif s == 'False':
        return False
    else:
        raise ValueError('Cannot convert bool: %r' % s)
