def test_soa_update(self):
        old_serial = Record.objects.get(pk=self.soa_record.pk).change_date
        self.a_record.delete()
        new_serial = Record.objects.get(pk=self.soa_record.pk).change_date
        self.assertGreater(new_serial, old_serial)
Test if SOA change_date is updated when a record is removed
dataset/ETHPy150Open allegro/django-powerdns-dnssec/powerdns/tests/test_events.py/TestSOASerialUpdate.test_soa_update