def test_init(self):
        logger = Logger()
        self.assertEqual('default', logger.name)
        self.assertIsNone(logger.query_index)
        self.assertEqual(0, len(logger.queries))
        self.assertEqual(1, len(LogManager.loggers))

        logger = Logger('custom_name')
        self.assertEqual('custom_name', logger.name)
        self.assertEqual(2, len(LogManager.loggers))
Copy uploaded file on the server and return its path
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/tests/logger_tests.py/LoggerTest.test_init--crossover with--dataset/ETHPy150Open mikrosimage/ColorPipe-tools/web_app/app.py/Application.__copy_uploaded_file