b1d8b119f5d7d9531d7b93aea18de368827158ae,tests/panels/test_logger.py,LoggingPanelTestCase,test_formatting,#LoggingPanelTestCase#,25

Before Change


        logger = logging.getLogger(__name__)
        logger.info("There are %d %s", 5, "apples")

        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("There are 5 apples",

After Change


                         records[0]["message"])

    def test_formatting(self):
        self.logger.info("There are %d %s", 5, "apples")

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

        self.assertEqual(1, len(records))
        self.assertEqual("There are 5 apples",
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_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


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