@raise_if_unsaved
    def is_ancestor_of(self, other, include_self=False):
        if include_self and other.pk == self.pk:
            return True
        return other.is_descendant_of(self)
Tests Gamma family with log link.
dataset/ETHPy150Open django-mptt/django-mptt/mptt/models.py/MPTTModel.is_ancestor_of--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/genmod/tests/test_glm.py/TestWtdGlmGamma.__init__