def HtmlFileLoggerCatchThrownException(self):
        logger = HtmlFileLogger(True, "", "HtmlFileLoggerCatchThrownException",
                                MessageType.GENERIC)
        logger.setFilePath("<>")

        logger.logMessage(MessageType.GENERIC,
                          "Test throws error as expected.")
        file = logger.getFilePath()
        file.delete()
    def HtmlFileLoggerSetFilePath(self):
        logger = HtmlFileLogger(True, "", "HtmlFileLoggerSetFilePath",
                                MessageType.GENERIC)
        logger.setFilePath("test file path")
        filePath = logger.getFilePath()

        file = logger.getFilePath()
        file.delete()
        self.assertEquals(filePath, "test file path",
                          "Expected 'test file path' as file path")