from fib import fib import logging logging.basicConfig( format='%(asctime)-15s [%(levelname)s] %(funcName)s: %(message)s', level=logging.DEBUG) logging.debug('Test startet') result5 = fib(5) result8 = fib(8) if result5 == 8 and result8 == 34: logging.info('Tests erfolgreich') else: logging.error('Tests fehlerhaft') logging.debug('Testende')