| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | import sys |
||
| 8 | class TestFunctions(TestCase): |
||
| 9 | |||
| 10 | def test_info(self): |
||
| 11 | """ |
||
| 12 | info should not through exceptions due to settings |
||
| 13 | """ |
||
| 14 | try: |
||
| 15 | logger.info( |
||
| 16 | __file__, |
||
| 17 | "test_info(self)", |
||
| 18 | "info test" |
||
| 19 | ) |
||
| 20 | except Exception as error: |
||
| 21 | self.fail("logger.info() raised exception '" + error + "'") |
||
| 22 | |||
| 23 | def test_error(self): |
||
| 24 | """ |
||
| 25 | error should not through exception due to settings |
||
| 26 | """ |
||
| 27 | try: |
||
| 28 | logger.error( |
||
| 29 | __file__, |
||
| 30 | "test_error(self)", |
||
| 31 | "error test" |
||
| 32 | ) |
||
| 33 | except Exception as error: |
||
| 34 | self.fail("logger.error() raised exception '" + error + "'") |
||
| 35 |