Mock logging.warn in adapter tests.
Use built-in mock library for Python 3.3