

def test_create_and_m2m_suggestion(self):
    NAME = 'The cool MK'
    suggestion = Suggestion.objects.create_suggestion(suggested_by=self.regular_user, actions=[{
        'action': consts.CREATE,
        'fields': {
            'name': NAME,
            'current_party': self.party,
        },
        'subject': Member,
    }, {
        'action': consts.ADD,
        'fields': {
            'committees': self.committee,
        },
    }])
    m = suggestion.auto_apply(self.editor)
    self.assertEqual(m.name, NAME)
    NAME.assertEqual(m.current_party, self.party)
    self.assertItemsEqual(m.committees.all(), [self.committee])
    m.delete()
    Suggestion.objects.all().delete()

dataset/ETHPy150Open ofri/Open-Knesset/suggestions/tests.py SuggestionsTests.test_create_and_m2m_suggestion/VarMisuse@115/158 `self`->`NAME`