/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-19 03:48:51 UTC
  • mfrom: (3712.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080919034851-21510mhvx3xwyrta
LocalTransport.abspath returns drive letter if transport has one
        (Mark Hammond)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1338
1338
        self.assertEqual(transport.clone("/").abspath('foo'),
1339
1339
                         transport.abspath("/foo"))
1340
1340
 
 
1341
    def test_win32_abspath(self):
 
1342
        # Note: we tried to set sys.platform='win32' so we could test on
 
1343
        # other platforms too, but then osutils does platform specific
 
1344
        # things at import time which defeated us...
 
1345
        if sys.platform != 'win32':
 
1346
            raise TestSkipped(
 
1347
                'Testing drive letters in abspath implemented only for win32')
 
1348
 
 
1349
        # smoke test for abspath on win32.
 
1350
        # a transport based on 'file:///' never fully qualifies the drive.
 
1351
        transport = get_transport("file:///")
 
1352
        self.failUnlessEqual(transport.abspath("/"), "file:///")
 
1353
 
 
1354
        # but a transport that starts with a drive spec must keep it.
 
1355
        transport = get_transport("file:///C:/")
 
1356
        self.failUnlessEqual(transport.abspath("/"), "file:///C:/")
 
1357
 
1341
1358
    def test_local_abspath(self):
1342
1359
        transport = self.get_transport()
1343
1360
        try: