def test_when_neither_secret_present(self): assert_equal(generate_plaintext_signature( "", method="POST", url="http://example.com/", oauth_params=self.oauth_params, token_or_temporary_shared_secret=None ), "&")
def test_when_both_secrets_present(self): assert_equal(generate_plaintext_signature( self.oauth_consumer_secret, method="POST", url="http://example.com/", oauth_params=self.oauth_params, token_or_temporary_shared_secret=self.oauth_token_secret, ), "consumer%20test%20secret&token%20test%20secret")