def METHOD_NAME(self):
    client = oauth.OAuth1Client(
        CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
    request = MockRequest()
    params = []
    self.assertEqual(
        client.generate_signature(request, params),
        "Wt2xo49dM5pkL4gsnCakNdHaVUo%3D")
    request = MockRequest("https://example.org/")
    params = [("hello", "world"), ("foo", "bar")]
    self.assertEqual(
        client.generate_signature(request, params),
        "ay2269%2F8uKpZqKJR1doTtpv%2Bzn0%3D")
    request = MockRequest("https://example.org/index.html"
                          "?hello=world&foo=bar", method="POST")
    params = [("oauth_signature_method", "HMAC-SHA1")]
    self.assertEqual(
        client.generate_signature(request, params),
        "yVZWb1ts4smdMmXxMlhaXrkoOng%3D")