

def test_accept_cookie(self):
    response = self.client.post(reverse('cookie_consent_accept', kwargs={
        'varname': 'optional',
    }), follow=True)
    self.assertEqual(response.status_code, 200)
    self.assertContains(self, '<span class="cookie-consent-accepted">Accepted</span>')

dataset/ETHPy150Open bmihelac/django-cookie-consent/tests/core/tests/views_tests.py IntegrationTest.test_accept_cookie/VarMisuse@54/71 `response`->`self`