~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-12 18:48:36 UTC
  • mfrom: (6055.2.19 unparsedurl-b)
  • Revision ID: pqm@pqm.ubuntu.com-20110812184836-5jv1u3ns0s74zsg0
(jelmer) Add URL.clone,
 URL.__str__ and use them in various places. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        self.assertRaises(errors.ReadError, a_file.read, 40)
139
139
        a_file.close()
140
140
 
141
 
    def test__combine_paths(self):
142
 
        t = transport.Transport('/')
143
 
        self.assertEqual('/home/sarah/project/foo',
144
 
                         t._combine_paths('/home/sarah', 'project/foo'))
145
 
        self.assertEqual('/etc',
146
 
                         t._combine_paths('/home/sarah', '../../etc'))
147
 
        self.assertEqual('/etc',
148
 
                         t._combine_paths('/home/sarah', '../../../etc'))
149
 
        self.assertEqual('/etc',
150
 
                         t._combine_paths('/home/sarah', '/etc'))
151
 
 
152
141
    def test_local_abspath_non_local_transport(self):
153
142
        # the base implementation should throw
154
143
        t = memory.MemoryTransport()