def has_perm(self, perm, obj=None):

        # Active superusers have all permissions.
        if self.is_active and self.is_superuser:
            return True

        # Otherwise we need to check the backends.
        return _user_has_perm(self, perm, obj)
Check that file.replace append_if_not_found works
dataset/ETHPy150Open potatolondon/djangae/djangae/contrib/gauth/datastore/models.py/PermissionsMixin.has_perm--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/file_test.py/FileReplaceTestCase.test_replace_append_if_not_found