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