~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Alexander Belchenko
  • Date: 2007-10-04 05:35:10 UTC
  • mfrom: (2804.4.6 selftest.win32)
  • mto: This revision was merged to the branch mainline in revision 2884.
  • Revision ID: bialix@ukr.net-20071004053510-1zdsm5ywq7pq41et
changes after Martin's review

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import bzrlib
24
24
from bzrlib import (
25
25
    errors,
 
26
    osutils,
26
27
    urlutils,
27
28
    )
28
29
from bzrlib.errors import (ConnectionError,
572
573
class TestLocalTransports(TestCase):
573
574
 
574
575
    def test_get_transport_from_abspath(self):
575
 
        here = os.path.abspath('.')
 
576
        here = osutils.abspath('.')
576
577
        t = get_transport(here)
577
578
        self.assertIsInstance(t, LocalTransport)
578
579
        self.assertEquals(t.base, urlutils.local_path_to_url(here) + '/')
579
580
 
580
581
    def test_get_transport_from_relpath(self):
581
 
        here = os.path.abspath('.')
 
582
        here = osutils.abspath('.')
582
583
        t = get_transport('.')
583
584
        self.assertIsInstance(t, LocalTransport)
584
585
        self.assertEquals(t.base, urlutils.local_path_to_url('.') + '/')
585
586
 
586
587
    def test_get_transport_from_local_url(self):
587
 
        here = os.path.abspath('.')
 
588
        here = osutils.abspath('.')
588
589
        here_url = urlutils.local_path_to_url(here) + '/'
589
590
        t = get_transport(here_url)
590
591
        self.assertIsInstance(t, LocalTransport)
591
592
        self.assertEquals(t.base, here_url)
592
593
 
593
594
    def test_local_abspath(self):
594
 
        here = os.path.abspath('.')
 
595
        here = osutils.abspath('.')
595
596
        t = get_transport(here)
596
597
        self.assertEquals(t.local_abspath(''), here)
597
598