'Check connection re-use'

def test_multi_commands(self):

    HTTPretty.register_uri(HTTPretty.POST, ('https://%s/' % self.region.endpoint), json.dumps({'test': 'secure'}), content_type='application/json')
    conn = self.region.connect(aws_access_key_id='access_key', aws_secret_access_key='secret')
    resp1 = conn.make_request('myCmd1', {'par1': 'foo', 'par2': 'baz'}, '/', 'POST')
    body1 = parse_qs(HTTPretty.last_request.body)
    resp2 = conn.make_request('myCmd2', {'par3': 'bar', 'par4': 'narf'}, '/', 'POST')
    body2 = parse_qs(HTTPretty.last_request.body)
    self.assertEqual(body1['par1'], ['foo'])
    self.assertEqual(body1['par2'], ['baz'])
    with self.assertRaises(KeyError):
        body1['par3']
    self.assertEqual(body2['par3'], ['bar'])
    self.assertEqual(body2['par4'], ['narf'])
    with self.assertRaises(KeyError):
        body2['par1']
    self.assertEqual(resp1.read(), '{"test":    "secure"}')
    self.assertEqual(resp2.read(), '{"test":    "secure"}')
