def METHOD_NAME(self):
    self.setUp_credentials()
    self.mocked_refresh_credentials.return_value = self.create_new_credentials(token="new_token")
    self.mocked_get_url.return_value = "googleredirecturl.com"
    request = self.factory.get('')
    request.user = self.user
    response = redirect_oauth_view(request, self.domain)
    stringified_creds = get_token(self.user)
    creds = load_credentials(stringified_creds.token)
    self.assertEqual(response.url, "placeholder.com")
    self.assertEqual(creds.token, 'new_token')