'We copy some of the variables from the test method above.'

def test_normalize_parameters(self):

    headers = {u'Authorization': self.authorization_header}
    parameters = collect_parameters(uri_query=self.uri_query, body=self.body, headers=headers)
    normalized = normalize_parameters(parameters)
    self.assertIsInstance(normalized, unicode_type)
    querystring_keys = [u'a2', u'a3', u'b5', u'content', u'oauth_consumer_key', u'oauth_nonce', u'oauth_signature_method', u'oauth_timestamp', u'oauth_token']
    index = (-1)
    for key in querystring_keys:
        self.assertGreater(normalized.index(key), index)
        index = normalized.index(key)
