def METHOD_NAME(self):
    self.user = self.create_user(email="a@example.com", is_managed=False, name="example name")
    self.user.set_password("helloworld!")
    self.user.save()
    self.login_as(self.user)