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

tests.test_mailbox_abstract   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A TestMailboxAbstract.setUp() 0 10 1
A TestMailboxAbstract.__init__() 0 2 1
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
"""Module documentation goes here."""
5
6
7
import logging
8
import unittest
9
10
11
class TestMailboxAbstract(unittest.TestCase):
12
    """Class documentation goes here."""
13
    # pylint: disable=R0801
14
    class _Namespace:  # pylint: disable=R0903, R0801
15
        """Helper class for arguments."""
16
17
        def __init__(self, **kwargs):
18
            self.__dict__.update(kwargs)
19
20
    def setUp(self):
21
        logging.basicConfig(level=logging.DEBUG)
22
        self.args = self._Namespace(server='unknown.localhost',
23
                                    max_size=20,
24
                                    skip_download=False,
25
                                    detach=False,
26
                                    target='/tmp/mailbox_cleaner',
27
                                    upload='tests',
28
                                    folder='tests',
29
                                    reset_cache=True)
30