def METHOD_NAME(self):
    self.client.auth.approle.create_or_update_approle("testrole")
    create_result = self.client.auth.approle.generate_secret_id(
        "testrole", {"foo": "bar"}
    )
    secret_id = create_result["data"]["secret_id"]
    role_id = self.client.auth.approle.read_role_id("testrole")["data"]["role_id"]
    result = self.client.auth.approle.login(role_id, secret_id, use_token=False)
    self.assertEqual(result["auth"]["metadata"]["foo"], "bar")
    self.assertNotEqual(self.client.token, result["auth"]["client_token"])