BW3-Core/test/test_header.py

39 lines
1.1 KiB
Python
Raw Normal View History

#!/usr/bin/python
# -*- coding: utf-8 -*-
2018-01-07 21:52:53 +01:00
"""!
____ ____ ______ __ __ __ _____
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
/ __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
/ /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
German BOS Information Script
by Bastian Schroll
@file: test_header.py
@date: 12.12.2017
@author: Bastian Schroll
2018-01-08 23:41:33 +01:00
@description: Unittests for BOSWatch. File must be _run as "pytest" unittest
"""
2018-01-12 07:48:27 +01:00
import logging
2018-01-11 12:59:53 +01:00
from boswatch.utils import header
2018-01-05 12:26:01 +01:00
class Test_Header:
"""!Unittests for the header"""
2018-01-12 07:48:27 +01:00
def setup_method(self, method):
2018-09-18 06:05:24 +02:00
logging.debug("[TEST] %s.%s", type(self).__name__, method.__name__)
2018-01-12 07:48:27 +01:00
def test_logoToLog(self):
"""!Test logo to log"""
2018-01-11 12:59:53 +01:00
assert header.logoToLog()
def test_infoToLog(self):
"""!Test info to log"""
2018-01-11 12:59:53 +01:00
assert header.infoToLog()
def test_logoToScreen(self):
"""!Test logo to screen"""
2018-01-11 12:59:53 +01:00
assert header.logoToScreen()