

def test_decline_cookie_ajax(self):
    response = self.client.delete(reverse('cookie_consent_decline', kwargs={
        'varname': 'optional',
    }), HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    response.assertEqual(response.status_code, 200)

dataset/ETHPy150Open bmihelac/django-cookie-consent/tests/core/tests/views_tests.py IntegrationTest.test_decline_cookie_ajax/VarMisuse@39/67 `self`->`response`