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

tests.test_mailbox_cleaner   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A TestMailboxCleaner.test_cli() 0 7 2
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