# Path: ejtp/util/compat.py



from ejtp.util.compat import unittest
        from ejtp.util.compat import StringIO
        import logging

class TestCaseWithLog(unittest.TestCase):

    def setUp(self):
        self._stream = StringIO()

    def listen(self, logger):
        handler = logging.StreamHandler(self._stream)
        formatter = logging.Formatter('%(levelname)s:%(name)s: %(message)s')
        handler.setFormatter(formatter)

# Path: ejtp/util/compat.py



# Path: ejtp/tests/tools.py
from ejtp.util.compat import unittest
        from ejtp.util.compat import StringIO
        import logging


class TestCaseWithLog(unittest.TestCase):

    def setUp(self):
        self._stream = StringIO()

    def listen(self, logger):
        handler = logging.StreamHandler(self._stream)
        formatter = logging.Formatter('%(levelname)s:%(name)s: %(message)s')
        handler.setFormatter(formatter)

        logger.setLevel(logging.INFO)