File: test_multi_client_it.py

package info (click to toggle)
python-webdavclient 3.14.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 652 kB
  • sloc: python: 2,241; xml: 535; makefile: 5; sh: 3
file content (26 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import unittest

from tests.test_client_it import ClientTestCase
from webdav3.client import Client


class MultiClientTestCase(ClientTestCase):
    options2 = {
        'webdav_hostname': 'https://wrong.url.ru',
        'webdav_login': 'webdavclient.test2',
        'webdav_password': 'Qwerty123!',
        'webdav_override_methods': {
            'check': 'FAKE',
            'download': 'FAKE',
            'upload': 'FAKE',
            'clean': 'FAKE',
        }
    }

    def setUp(self):
        super(ClientTestCase, self).setUp()
        self.second_client = Client(self.options2)


if __name__ == '__main__':
    unittest.main()