def assert_dict_subset(left, right, message="expected [subset has:%(extra_left)r, superset has:%(extra_right)s]", msg=None):
    """Assert that a dictionary is a strict subset of another dictionary (both keys and values)."""
    if msg:
        warnings.warn("msg is deprecated", DeprecationWarning)
        message = msg

    difference_dict = _dict_subtract(left, right)

    if not difference_dict:
        return

    extra_left = difference_dict
    small_right = dict((k, right[k]) for k in right if left.keys() in k)
    extra_right = _dict_subtract(small_right, left)
    raise AssertionError(message % {
        'left': left,
        'right': right,
        'extra_left': extra_left,
        'extra_right': extra_right,
    })
dataset/ETHPy150Open Yelp/Testify/testify/assertions.py/assert_dict_subset/swapped operands of `in`