@@ 152-165 (lines=14) @@ | ||
149 | self.webdav_up = easywebdav.connect('localhost', port=5000, path='dav', |
|
150 | username='binux', password='4321') |
|
151 | ||
152 | @classmethod |
|
153 | def tearDownClass(self): |
|
154 | for each in self.ctx.obj.instances: |
|
155 | each.quit() |
|
156 | self.app_thread.join() |
|
157 | time.sleep(1) |
|
158 | ||
159 | assert not utils.check_port_open(5000) |
|
160 | assert not utils.check_port_open(23333) |
|
161 | assert not utils.check_port_open(24444) |
|
162 | assert not utils.check_port_open(25555) |
|
163 | assert not utils.check_port_open(14887) |
|
164 | ||
165 | shutil.rmtree('./data/tests', ignore_errors=True) |
|
166 | ||
167 | def test_10_ls(self): |
|
168 | import easywebdav |
|
@@ 49-62 (lines=14) @@ | ||
46 | self.webdav_up = easywebdav.connect('localhost', port=5000, path='dav', |
|
47 | username='binux', password='4321') |
|
48 | ||
49 | @classmethod |
|
50 | def tearDownClass(self): |
|
51 | for each in self.ctx.obj.instances: |
|
52 | each.quit() |
|
53 | self.app_thread.join() |
|
54 | time.sleep(1) |
|
55 | ||
56 | assert not utils.check_port_open(5000) |
|
57 | assert not utils.check_port_open(23333) |
|
58 | assert not utils.check_port_open(24444) |
|
59 | assert not utils.check_port_open(25555) |
|
60 | assert not utils.check_port_open(14887) |
|
61 | ||
62 | shutil.rmtree('./data/tests', ignore_errors=True) |
|
63 | ||
64 | def test_10_ls(self): |
|
65 | self.assertEqual(len(self.webdav.ls()), 1) |