def test_threeMsgsInLoggerAfterTwoOtherMessageMethods(self): parser = ParseArgs() args = parser.get_parsed_arguments_variables("checkBoth", "equation", "Mark = ", "./Logs/Logger.txt") logger = Logger(args) logger.other_message("test message") logger.other_message("another test message") self.assertEquals(len(logger.messages), 3)
def test_three_msgs_in_logger_after_two_message_methods(): parser = ParseArgs() args = parser.get_parsed_arguments_variables("checkBoth", "equation", "Mark = ", "./Logs/Logger.txt") logger = Logger(args) logger.other_message("test message") logger.other_message("another test message") os.remove(logger.path_name) assert (len(logger.messages) == 3)