| Total Complexity | 4 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | """This module is about testing the logger.""" |
||
| 10 | class TestFunctions(TestCase): |
||
| 11 | """Test class wrapper using unittest.""" |
||
| 12 | |||
| 13 | # pylint: disable=W0703; This is acceptable since we are testing it not failing |
||
| 14 | |||
| 15 | def test_info(self): |
||
| 16 | """Info should not through exceptions due to settings.""" |
||
| 17 | try: |
||
| 18 | LOGGER.info("info test") |
||
| 19 | except Exception as error: |
||
| 20 | self.fail("logger.info() raised exception '" + str(error) + "'") |
||
| 21 | |||
| 22 | def test_error(self): |
||
| 23 | """Error should not through exception due to settings.""" |
||
| 24 | try: |
||
| 25 | LOGGER.error("error test") |
||
| 26 | except Exception as error: |
||
| 27 | self.fail("logger.error() raised exception '" + str(error) + "'") |
||
| 28 |