~elopio/ubuntu-sso-client/autopilot

« back to all changes in this revision

Viewing changes to ubuntu_sso/utils/webclient/tests/test_webclient.py

  • Committer: leo.arias at canonical
  • Date: 2013-02-23 18:49:59 UTC
  • mfrom: (1021.2.2 ubuntu-sso-client)
  • Revision ID: leo.arias@canonical.com-20130223184959-qk02det611b0f9j4
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
839
839
        setattr(src, attr_name, staticmethod(replacement))
840
840
        self.addCleanup(setattr, src, attr_name, staticmethod(original))
841
841
 
842
 
    def test_iri_parameters_used_in_oauth_signature(self):
843
 
        """The iri parameters are used in the oauth signature."""
844
 
        query_url = self.sample_url + "?fake_param=fake_value"
845
 
        url, headers, body = self.wc.build_oauth_request(
846
 
            self.sample_method, query_url,
847
 
            SAMPLE_CREDENTIALS, self.timestamp,
848
 
            parameters={})
849
 
        self.assertEqual(body, {'fake_param': 'fake_value'})
850
 
 
851
842
 
852
843
class OAuthHmacSha1TestCase(OAuthPlainTextTestCase):
853
844
    """Test for the oauth signing code using HMAC-SHA1."""