Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/y/python-webdav-HEAD/tests/connection_test.py   python-webdav(Download)
        resource_uri = 'webdav/test_file1_copy.txt'
        connection_obj.locks[resource_uri] = 'thisisalock'
        result = client.release_lock(resource_uri, connection_obj)
        self.assertFalse(connection_obj.locks.get(resource_uri))
        self.assertEquals(result, 200)
        client = python_webdav.connection.Client()
        resource_uri = 'webdav/test_file1_copy.txt'
        result = client.release_lock(resource_uri, connection_obj)
        self.assertFalse(connection_obj.locks.get(resource_uri))
        self.assertEquals(result, False)