| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 2 | # -*- coding: utf-8 -*- |
||
| 3 | |||
| 4 | """Module documentation goes here.""" |
||
| 5 | |||
| 6 | |||
| 7 | import logging |
||
| 8 | import unittest |
||
| 9 | import tempfile |
||
| 10 | |||
| 11 | |||
| 12 | class TestMailboxAbstract(unittest.TestCase): |
||
| 13 | """Class documentation goes here.""" |
||
| 14 | # pylint: disable=R0801 |
||
| 15 | class _Namespace: # pylint: disable=R0903, R0801 |
||
| 16 | """Helper class for arguments.""" |
||
| 17 | |||
| 18 | def __init__(self, **kwargs): |
||
| 19 | self.__dict__.update(kwargs) |
||
| 20 | |||
| 21 | _TARGET = tempfile.mkdtemp() + '_' |
||
| 22 | |||
| 23 | def setUp(self): |
||
| 24 | logging.basicConfig(level=logging.DEBUG) |
||
| 25 | self.args = self._Namespace(server='unknown.localhost', |
||
| 26 | user='test', |
||
| 27 | password='test', |
||
| 28 | all=True, |
||
| 29 | min_size=20, |
||
| 30 | skip_download=False, |
||
| 31 | read_only=False, |
||
| 32 | detach=True, |
||
| 33 | target=TestMailboxAbstract._TARGET, |
||
| 34 | upload='tests', |
||
| 35 | folder='tests', |
||
| 36 | reset_cache=True) |
||
| 37 |