'test for the different query stings checked by process url'

def test_good_parameters(self):

    query_args = {'blocked_connection_timeout': 10.5, 'channel_max': 3, 'connection_attempts': 2, 'frame_max': 40000, 'heartbeat': 7, 'locale': 'en_UK', 'retry_delay': 3, 'socket_timeout': 100.5, 'ssl_options': {'ssl': 'options'}}
    for backpressure in ('t', 'f'):
        test_params = copy.deepcopy(query_args)
        test_params['backpressure_detection'] = backpressure
        virtual_host = '/'
        query_string = urlencode(test_params)
        test_url = ('https://myuser:mypass@www.test.com:5678/%s?%s' % (url_quote(virtual_host, safe=''), query_string))
        params = connection.URLParameters(test_url)
        for t_param in query_args:
            expected_value = query_args[t_param]
            actual_value = getattr(params, t_param)
            self.assertEqual(actual_value, expected_value, msg=('Expected    %s=%r,    but    got    %r' % (t_param, expected_value, actual_value)))
        self.assertEqual(params.backpressure_detection, (backpressure == 't'))
        self.assertEqual(params.ssl, True)
        self.assertEqual(params.credentials.username, 'myuser')
        self.assertEqual(params.credentials.password, 'mypass')
        self.assertEqual(params.host, 'www.test.com')
        self.assertEqual(params.port, 5678)
        self.assertEqual(params.virtual_host, virtual_host)
