def METHOD_NAME(self):
    lti = Client(
        client_key=OTHER_LTI_CONSUMER_KEY,
        client_secret=OTHER_LTI_CONSUMER_SECRET,
        signature_type=SIGNATURE_TYPE_BODY,
    )
    (uri, _headers, body) = lti.sign(
        uri=self.url_prefix + LTI_TPA_LOGIN_URL, http_method='POST',
        headers={'Content-Type': FORM_ENCODED},
        body={
            'user_id': LTI_USER_ID,
            'custom_tpa_next': '/account/finish_auth/?course_id=my_course_id&enrollment_action=enroll',
        }
    )
    with self.settings(SOCIAL_AUTH_LTI_CONSUMER_SECRETS={OTHER_LTI_CONSUMER_KEY: OTHER_LTI_CONSUMER_SECRET}):
        login_response = self.client.post(path=uri, content_type=FORM_ENCODED, data=body)
        # The user should be redirected to the registration form
        assert login_response.status_code == 302
        assert login_response['Location'].endswith(reverse('signin_user'))
        register_response = self.client.get(login_response['Location'])
        self.assertContains(
            register_response,
            '"currentProvider": "Tool Consumer with Secret in Settings"',
        )
        self.assertContains(register_response, '"errorMessage": null')