def test_parses_realm_without_decoding(self): self.assertEqual( _authorization_header_parse_param('realm="example%20com"'), ("realm", "example%20com") )
def test_parses_without_stripping_multiple_end_quotes(self): self.assertEqual( _authorization_header_parse_param('realm=""example.com""'), ("realm", '"example.com"'), )
def test_parses_param(self): self.assertEqual( _authorization_header_parse_param ('oauth_token="DcTLsknQAZcrPNdsu4JM%2FPX%2F"'), (OAUTH_PARAM_TOKEN, 'DcTLsknQAZcrPNdsu4JM/PX/') )