~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Vincent Ladeuil
  • Date: 2007-11-14 08:20:26 UTC
  • mfrom: (2974 +trunk)
  • mto: (2990.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2991.
  • Revision ID: v.ladeuil+lp@free.fr-20071114082026-4d27f52n5r0t82rw
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1110
1110
 
1111
1111
        def new_url(scheme=None, user=None, password=None,
1112
1112
                    host=None, port=None, path=None):
1113
 
            """Build a new url from t.base chaging only parts of it.
 
1113
            """Build a new url from t.base changing only parts of it.
1114
1114
 
1115
1115
            Only the parameters different from None will be changed.
1116
1116
            """
1123
1123
            if path     is None: path     = t._path
1124
1124
            return t._unsplit_url(scheme, user, password, host, port, path)
1125
1125
 
1126
 
        self.assertIsNot(t, t._reuse_for(new_url(scheme='foo')))
 
1126
        if t._scheme == 'ftp':
 
1127
            scheme = 'sftp'
 
1128
        else:
 
1129
            scheme = 'ftp'
 
1130
        self.assertIsNot(t, t._reuse_for(new_url(scheme=scheme)))
1127
1131
        if t._user == 'me':
1128
1132
            user = 'you'
1129
1133
        else: