human
Solve the following python programming problem given the following code:
@ pytest.fixture (autouse = True) 
def _monkeypatch_response_class(request, monkeypatch) : 
    "Set custom response class before test suite and restore the original
    after. Custom response has `json` property to easily test JSON responses::

        @app.route('/ping')
        def ping():
            return jsonify(ping='pong')

        def test_json(client):
            res = client.get(url_for('ping'))
            assert res.json == {'ping': 'pong'}

    " 
    if ('app' not in request.fixturenames) : 
        return 
app = request.getfuncargvalue ('app') 
    monkeypatch.setattr (request, 'response_class', _make_test_response_class (app.response_class)) 

    
    

    Fix the buggy line: monkeypatch.setattr (request, 'response_class', _make_test_response_class (app.response_class))
assistant
#Here is Python program to fix the buggy line: monkeypatch.

monkeypatch.setattr (app, 'response_class', _make_test_response_class (app.response_class))