| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 2 | # -*- coding: utf-8 -*- |
||
| 3 | |||
| 4 | """Module documentation goes here.""" |
||
| 5 | |||
| 6 | |||
| 7 | import unittest |
||
| 8 | from src import mailbox_cleaner |
||
| 9 | from tests.test_mailbox_abstract import TestMailboxAbstract |
||
| 10 | |||
| 11 | |||
| 12 | class TestMailboxCleaner(TestMailboxAbstract, unittest.TestCase): |
||
| 13 | """Class documentation goes here.""" |
||
| 14 | |||
| 15 | def test_cli(self): |
||
| 16 | """Testing the CLI.""" |
||
| 17 | |||
| 18 | with self.assertRaises(SystemExit) as code: |
||
| 19 | mailbox_cleaner.main() |
||
| 20 | |||
| 21 | self.assertEqual(code.exception.code, 2) |
||
| 22 | |||
| 23 | |||
| 24 | if __name__ == '__main__': |
||
| 25 | unittest.main() |
||
| 26 |