def METHOD_NAME(self):
    # This is a test for when a person is marked as not standing in an
    # election, but then later is marked as standing in that same election.
    # This can happen if a person is marked as not standing in an election
    # and then later is added to the ballot paper.
    ballot = self.election.ballot_set.first()
    self.person = PersonFactory()
    self.assertEqual(self.person.not_standing.all().count(), 0)
    self.person.not_standing.add(ballot.election)
    # adding a person to a ballot removes the ballot from that person's not standing list
    response = self.app.get(
        f"/person/{self.person.id}/update", user=self.user, auto_follow=True
    )
    form = response.forms["person-details"]
    form["memberships-0-ballot_paper_id"].value = ballot.ballot_paper_id
    form["memberships-0-party_identifier_0"].value = self.labour_party.ec_id
    form[
        "source"
    ] = "Test adding a person to a ballot removes them from the not standing list"
    form.submit()
    # check that the person is no longer marked as not standing in the election
    self.assertEqual(self.person.not_standing.all().count(), 0)