

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

dataset/ETHPy150Open bmihelac/django-cookie-consent/tests/core/tests/views_tests.py IntegrationTest.test_decline_cookie/original