572
573
class TestLocalTransports(TestCase):
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) + '/')
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('.') + '/')
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)
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)