

def test_RuntimeError(self):
    from moderation.helpers import automoderate
    profile = UserProfile.objects.get(user__username='moderator')
    profile.description = 'Change description'
    profile.save()
    self.moderated_object.changed_by = self.user
    profile.moderated_object.save()
    automoderate(profile, self.user)
    profile.moderated_object.save()

dataset/ETHPy150Open dominno/django-moderation/tests/tests/regression/testregressions.py AutomoderationRuntimeErrorRegressionTestCase.test_RuntimeError/VarMisuse@42/58 `profile`->`self`