Ejemplo n.º 1
0
    def setUp(self):
        self.case_directory = self.createTestPath("local/simple_config/")
        self.config_file = "simple_config/minimum_config"

        self.log_files = [
            (None, "simple_config/log.txt"),
            ("file_loglog", "simple_config/file_loglog"),
            ("this/is/../my/log/file.loglog",
             "simple_config/this/my/log/file.loglog"),
        ]

        self.log_levels = [(None, MessageLevelEnum.LOG_WARNING)]
        for message_level in [
                lev for lev in MessageLevelEnum.enums() if lev.value
        ]:
            self.log_levels.append(
                (message_level.name.split("_")[1], message_level))
Ejemplo n.º 2
0
    def setUp(self):
        self.case_directory = self.createTestPath("local/simple_config/")
        self.config_file = "simple_config/minimum_config"

        self.log_files = [
                            (None, "simple_config/log"),
                            ("file_loglog", "simple_config/file_loglog"),
                            ("this/is/../my/log/file.loglog", "simple_config/this/my/log/file.loglog")
                         ]

        self.log_levels = [(None, MessageLevelEnum.LOG_ERROR)]
        for message_level in MessageLevelEnum.enums():
            # Add new log level
            self.log_levels.append((message_level.name.split("_")[1], message_level))

            # Add old log level
            self.log_levels.append((str(message_level.value), message_level))