~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ftp_transport.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-19 01:56:41 UTC
  • mfrom: (6379.4.8 urlutils-quote)
  • Revision ID: pqm@pqm.ubuntu.com-20111219015641-k7fyhyf6rfgk93m2
(jelmer) Include quote() and unquote() directly in bzrlib.urlutils. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import ftplib
18
18
import getpass
19
 
import urllib
20
19
 
21
20
from bzrlib import (
22
21
    config,
24
23
    tests,
25
24
    transport,
26
25
    ui,
 
26
    urlutils,
27
27
    )
28
28
 
29
29
from bzrlib.transport import ftp
85
85
        parsed_url = transport.ConnectedTransport._split_url(base)
86
86
        new_url = parsed_url.clone()
87
87
        new_url.user = self.user
88
 
        new_url.quoted_user = urllib.quote(self.user)
 
88
        new_url.quoted_user = urlutils.quote(self.user)
89
89
        new_url.password = self.password
90
 
        new_url.quoted_password = urllib.quote(self.password)
 
90
        new_url.quoted_password = urlutils.quote(self.password)
91
91
        return str(new_url)
92
92
 
93
93
    def test_no_prompt_for_username(self):