def test_clear_log(self):
        logger_one = Logger('one')
        logger_one.start_logging()
        query = Query().from_table(Account)

        # run a query and update the logger's query list
        query.select()
        logger_one.update_log()

        # there should be one query
        self.assertEqual(logger_one.count(), 1)

        # increment the connection query count
        query.select()

        # clear the log
        logger_one.clear_log()

        # make sure no queries
        self.assertEqual(0, len(logger_one.queries))
Makes sure queries are cleared
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/tests/logger_tests.py/LoggerTest.test_clear_log