def METHOD_NAME(self):
    with StringIO() as fh:
        libcloud.enable_debug(fh)
        conn = Connection(url="http://test.com/")
        conn.connect()
        self.assertEqual(conn.connection.host, "http://test.com")
        with requests_mock.mock() as m:
            m.get("http://test.com/test", text="data")
            conn.request("/test")
        log = fh.getvalue()
    self.assertTrue(isinstance(conn.connection, LoggingConnection))
    self.assertIn("-i -X GET", log)
    self.assertIn("data", log)