

def test_register_exclude_fields(self):
    sem = SimpleExcludeModel(label='Exclude model', text='Looong text')
    sem.save()
    self.assertTrue((sem.history.count() == 1), msg='There is one log entry')
    sem.label = 'Changed label'
    sem.save()
    self.assertTrue((sem.history.count() == 2), msg='There are two log entries')
    sem.text = 'Short text'
    sem.save()
    self.assertTrue((sem.history.count() == 2), msg='There are two log entries')

dataset/ETHPy150Open jjkester/django-auditlog/src/auditlog_tests/tests.py SimpeExcludeModelTest.test_register_exclude_fields/original