def METHOD_NAME(self):
    user = baker.make(UserProfile, email="tester@institution.example.com", language="de")
    self.app.post(self.url, params={"language": "en"}, user=user)
    user.refresh_from_db()
    self.assertEqual(user.language, "en")
    translation.activate("en")  # for following tests