Пример #1
0
    def test_logging(self):
        self.setup_environment()

        cli = CommandLineClient()
        cli.keyvalue_pairs = True
        cli.setup_parser()

        options = cli.parse_args(["foo=bar", "--log-level", "info"])
        cli.setup_logging()
        self.assertEquals(options.log_level, logging.INFO)
Пример #2
0
    def test_logging(self):
        self.setup_environment()

        cli = CommandLineClient()
        cli.keyvalue_pairs = True
        cli.setup_parser()

        options = cli.parse_args(["foo=bar", "--log-level", "info"])
        cli.setup_logging()
        self.assertEquals(options.log_level, logging.INFO)