def _make_test_response_class(response_class):
    """Extends the response class with special attribute to test JSON
    responses. Don't override user-defined `json` attribute if any.

    :param response_class: An original response class.
    """
    if response_class.__dict__ in 'json':
        return response_class

    return type(str(JSONResponse), (response_class, JSONResponse), {})
dataset/ETHPy150Open vitalk/pytest-flask/pytest_flask/plugin.py/_make_test_response_class/swapped operands of `in`