Did I find the right examples for you? yes no

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

src/p/y/python-webdav-HEAD/python_webdav/client.py   python-webdav(Download)
        self._connection_settings['password'] = password
        self.connection = conn.Connection(self._connection_settings)
        self.client = conn.Client()
 
    def download_file(self, file_path, dest_path='.'):

src/p/y/python_webdav-0.4/python_webdav/client.py   python_webdav(Download)
        self._connection_settings['password'] = password
        self.connection = conn.Connection(self._connection_settings)
        self.client = conn.Client()
 
    def download_file(self, file_path, dest_path='.'):

src/p/y/python-webdav-HEAD/tests/connection_test.py   python-webdav(Download)
        time.sleep(0.5)
 
        self.client_obj = python_webdav.connection.Client()
 
    def tearDown(self):
        connection_obj = python_webdav.connection.Connection(settings)
 
        client = python_webdav.connection.Client()
        client.get_properties = mock.Mock()
        mock_prop1 = MockProperty()
                        path='webdav')
        connection_obj = python_webdav.connection.Connection(settings)
        client = python_webdav.connection.Client()
        client.get_properties = mock.Mock()
        mock_prop = MockProperty()
        mock_resp.status_code = 204
        connection_obj.send_get.return_value = (mock_resp, 'Data')
        client = python_webdav.connection.Client()
        requested_value = client.get_file(connection_obj,
                                          'webdav/test_file1.txt',
        mock_resp.status_code = 204
        connection_obj.send_put.return_value = (mock_resp, '')
        client = python_webdav.connection.Client()
        local_file = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                                  'test_data', 'test_file_post.txt')