Passed
Push — main ( 242f40...8b1e40 )
by Alexander
01:29
created

TestMailboxCleaner.test_cli()   A

Complexity

Conditions 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nop 1
dl 0
loc 7
rs 10
c 0
b 0
f 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