2018-01-04 22:24:55 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-07 21:52:53 +01:00
|
|
|
"""!
|
2018-01-04 22:24:55 +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-04 22:24:55 +01:00
|
|
|
"""
|
2018-01-12 07:48:27 +01:00
|
|
|
import logging
|
2018-01-04 22:24:55 +01:00
|
|
|
|
2018-01-11 12:59:53 +01:00
|
|
|
from boswatch.utils import header
|
2018-01-04 22:24:55 +01:00
|
|
|
|
|
|
|
|
|
2018-01-05 12:26:01 +01:00
|
|
|
class Test_Header:
|
2018-01-04 22:24:55 +01:00
|
|
|
"""!Unittests for the header"""
|
|
|
|
|
|
2018-01-12 07:48:27 +01:00
|
|
|
def setup_method(self, method):
|
|
|
|
|
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
|
|
|
|
|
|
2018-01-04 22:24:55 +01:00
|
|
|
def test_logoToLog(self):
|
|
|
|
|
"""!Test logo to log"""
|
2018-01-11 12:59:53 +01:00
|
|
|
assert header.logoToLog()
|
2018-01-04 22:24:55 +01:00
|
|
|
|
|
|
|
|
def test_infoToLog(self):
|
|
|
|
|
"""!Test info to log"""
|
2018-01-11 12:59:53 +01:00
|
|
|
assert header.infoToLog()
|
2018-01-04 22:24:55 +01:00
|
|
|
|
|
|
|
|
def test_logoToScreen(self):
|
|
|
|
|
"""!Test logo to screen"""
|
2018-01-11 12:59:53 +01:00
|
|
|
assert header.logoToScreen()
|