def test_ajust_log_path_app_path(self):
        app_path = os.path.join('../', os.path.dirname(__file__), 'app-path')
        sys.argv[1:] = ['--app-path=%s' % app_path]
        opt = parser._parse_args()
        self.cli._set_loggers(opt)
        handlers = self.cli.log.handlers
        self.assertTrue(isinstance(handlers[0], logging.FileHandler))
        self.assertEquals(os.path.join(app_path, 'logs/wsgid.log'), handlers[0].baseFilename)
We must generate all logs inside <app-path>/logs
dataset/ETHPy150Open daltonmatos/wsgid/tests/unit/cli_test.py/CliTest.test_ajust_log_path_app_path