def METHOD_NAME(self):
    user = baker.make(UserProfile)
    page = self.app.get(self.url, user=self.responsible)
    form = page.forms["profile-form"]
    form["delegates"] = [user.pk]
    form.submit()
    self.responsible.refresh_from_db()
    self.assertEqual(list(self.responsible.delegates.all()), [user])