def test_stop_logging(self):
        logger = Logger()
        logger.start_logging()

        query = Query().from_table(Account)
        query.select()
        query.select()

        self.assertEqual(2, logger.count())

        logger.stop_logging()
        query.select()
        query.select()
        self.assertEqual(2, logger.count())

        logger.start_logging()
        query.select()
        self.assertEqual(3, logger.count())
Verifies that the logger stops caring about queries
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/tests/logger_tests.py/LoggerTest.test_stop_logging