def test_generic_relation_cascade(self):
        person = Person.objects.create(name='Nelson Mandela')
        award = Award.objects.create(name='Nobel', content_object=person)
        note = AwardNote.objects.create(note='a peace prize',
                                        award=award)
        self.assertEqual(AwardNote.objects.count(), 1)
        person.delete()
        self.assertEqual(Award.objects.count(), 0)
        # first two asserts are just sanity checks, this is the kicker:
        self.assertEqual(AwardNote.objects.count(), 0)
The most simple way to compute Cramer-von Mises flatness, this is however very slow
dataset/ETHPy150Open adieu/django-nonrel/tests/regressiontests/delete_regress/tests.py/DeleteCascadeTests.test_generic_relation_cascade--crossover with--dataset/ETHPy150Open anaderi/lhcb_trigger_ml/hep_ml/metrics.py/cvm_flatness