b1d8b119f5d7d9531d7b93aea18de368827158ae,tests/panels/test_logger.py,LoggingPanelTestCase,test_happy_case,#LoggingPanelTestCase#,13

Before Change


        logger = logging.getLogger(__name__)
        logger.info("Nothing to see here, move along!")

        logging_panel = self.toolbar.get_panel(LoggingPanel)
        logging_panel.process_response(None, None)
        records = logging_panel.get_stats()["records"]

        self.assertEqual(1, len(records))
        self.assertEqual("Nothing to see here, move along!",

After Change


        self.logger = logging.getLogger(__name__)

    def test_happy_case(self):
        self.logger.info("Nothing to see here, move along!")

        self.panel.process_response(self.request, self.response)
        records = self.panel.get_stats()["records"]

        self.assertEqual(1, len(records))
        self.assertEqual("Nothing to see here, move along!",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: b1d8b119f5d7d9531d7b93aea18de368827158ae
Time: 2013-11-10
Author: aymeric.augustin@m4x.org
File Name: tests/panels/test_logger.py
Class Name: LoggingPanelTestCase
Method Name: test_happy_case


Project Name: jazzband/django-debug-toolbar
Commit Name: b1d8b119f5d7d9531d7b93aea18de368827158ae
Time: 2013-11-10
Author: aymeric.augustin@m4x.org
File Name: tests/panels/test_logger.py
Class Name: LoggingPanelTestCase
Method Name: test_failing_formatting


Project Name: jazzband/django-debug-toolbar
Commit Name: b1d8b119f5d7d9531d7b93aea18de368827158ae
Time: 2013-11-10
Author: aymeric.augustin@m4x.org
File Name: tests/panels/test_logger.py
Class Name: LoggingPanelTestCase
Method Name: test_formatting


Project Name: jazzband/django-debug-toolbar
Commit Name: b1d8b119f5d7d9531d7b93aea18de368827158ae
Time: 2013-11-10
Author: aymeric.augustin@m4x.org
File Name: tests/panels/test_logger.py
Class Name: LoggingPanelTestCase
Method Name: test_happy_case