

def test_delete(self):
    'Deletion is logged correctly.'
    obj = self.obj
    history = obj.history.latest()
    obj.delete()
    self.assertTrue((LogEntry.objects.filter(content_type=history.content_type, object_pk=history.object_pk, action=LogEntry.Action.DELETE).count() == 1), msg="There is one log entry for 'DELETE'")

dataset/ETHPy150Open jjkester/django-auditlog/src/auditlog_tests/tests.py SimpleModelTest.test_delete/original