def is_direct_subclass(class_, of):
    """Check whether given class is a direct subclass of the other.

    :param class_: Class to check
    :param of: Superclass to check against

    :return: Boolean result of the test

    .. versionadded:: 0.0.4
    """
    ensure_class(class_)
    ensure_class(of)  # TODO(xion): support predicates in addition to classes

    return of in class_.__bases__
Check whether given class is a direct subclass of the other.

    :param class_: Class to check
    :param of: Superclass to check against

    :return: Boolean result of the test

    .. versionadded:: 0.0.4