~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-07-23 12:09:44 UTC
  • mfrom: (6037.1.3 file-relative)
  • Revision ID: pqm@pqm.ubuntu.com-20110723120944-iot2mt9eu8qmbibo
(jelmer) Add support for file relative URLs with a scheme. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1023
1023
 
1024
1024
    def test_path(self):
1025
1025
        self.assertEquals("file:///foo/bar", location_to_url("/foo/bar"))
 
1026
 
 
1027
    def test_relative_file_url(self):
 
1028
        self.assertEquals(urlutils.local_path_to_url(".") + "/bar",
 
1029
            location_to_url("file:bar"))
 
1030
 
 
1031
    def test_absolute_file_url(self):
 
1032
        self.assertEquals("file:///bar", location_to_url("file:/bar"))