Пример #1
0
    def setUp(self):
        self.mock_logger_1 = mock.MagicMock(spec=ifuzz_logger_backend.IFuzzLoggerBackend)
        self.mock_logger_2 = mock.MagicMock(spec=ifuzz_logger_backend.IFuzzLoggerBackend)
        self.logger = fuzz_logger.FuzzLogger(fuzz_loggers=[self.mock_logger_1, self.mock_logger_2])

        self.some_text = "Some test text"
        self.some_other_text = "More test text"
        self.some_int = 1
        self.some_data = bytes(b"1234567890\0")
    def setUp(self):
        self.mock_logger_1 = mock.MagicMock(
            spec=ifuzz_logger_backend.IFuzzLoggerBackend)
        self.mock_logger_2 = mock.MagicMock(
            spec=ifuzz_logger_backend.IFuzzLoggerBackend)
        self.logger = fuzz_logger.FuzzLogger(
            fuzz_loggers=[self.mock_logger_1, self.mock_logger_2])

        self.restarts = 0