

def test_logging(self):
    self.client.post(reverse('cookie_consent_accept', kwargs={
        'varname': 'optional',
    }))
    log_items = LogItem.objects.filter(cookiegroup=self.cookie_group, version=self.cookie_group.get_version(), action=ACTION_ACCEPTED)
    self.assertEqual(log_items.count(), 1)
    self.client.delete(reverse('cookie_consent_decline', kwargs={
        'varname': 'optional',
    }))
    log_items = LogItem.objects.filter(cookiegroup=log_items.cookie_group, version=self.cookie_group.get_version(), action=ACTION_DECLINED)
    self.assertEqual(log_items.count(), 1)

dataset/ETHPy150Open bmihelac/django-cookie-consent/tests/core/tests/views_tests.py IntegrationTest.test_logging/VarMisuse@108/149 `self`->`log_items`