Beispiel #1
0
 def test_get_requested_url(self):
     # The OpenIDCallbackView needs to pass the currently-being-requested
     # URL to the OpenID library.  OpenIDCallbackView._get_requested_url
     # returns the URL.
     request = LaunchpadTestRequest(
         SERVER_URL='http://example.com',
         QUERY_STRING='foo=bar',
         form={'starting_url': 'http://launchpad.dev/after-login'})
     view = OpenIDCallbackView(context=None, request=None)
     url = view._get_requested_url(request)
     self.assertEquals(url, 'http://example.com?foo=bar')