

def test_cant_auto_apply_freetext(self):
    suggestion = Suggestion.objects.create_suggestion(suggested_by=self.regular_user, comment='A free text comment')
    with self.assertRaises(ValueError):
        suggestion.auto_apply(self.editor)
    Suggestion.objects.all().delete()

dataset/ETHPy150Open ofri/Open-Knesset/suggestions/tests.py SuggestionsTests.test_cant_auto_apply_freetext/original