def METHOD_NAME(self):
    # table should be empty before we start
    self.assertEqual(0, Election.private_objects.count())
    # doing this will cause save() to throw a exception
    # if we try to save parent_record
    self.election_group.organisation_id = "foo"
    with contextlib.suppress(ValueError):
        self.org_group.save()
    # the exception should have prevented both the
    # parent and child records from being saved
    self.assertEqual(0, Election.private_objects.count())