def contains(sub, super):
    """
    Non-recursive.
    Check if sub dict is included in super dict (both keys and values are equal)::

        >>> contains({0: 'A', 1: 'B'}, {0: 'A', 1: 'B', 2: 'C'})
        True

        >>> contains({0: 'A', 1: 'B', 2: 'C'}, {0: 'A', 1: 'B'})
        False

    :param dict sub: the dict, which should be included in super dict
    :param dict super: the dict, which should include all elements from sub dict
    :return: true if super contains sub, otherwise false.
    """

    return all(
        key in super and sub[key] == super[key] for key, value in sub.items()
    )