~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_urlutils.py

  • Committer: John Arbash Meinel
  • Date: 2006-05-11 18:15:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060511181500-4d9e153e05cf2d1e
Updated normalize_url

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
            else:
73
73
                url = url[len('file://'):]
74
74
 
75
 
            self.assertEndsWith(path, expected)
 
75
            self.assertEndsWith(url, expected)
76
76
 
77
77
        norm_file('path/to/foo', 'path/to/foo')
78
78
        norm_file('/path/to/foo', '/path/to/foo')
83
83
        norm_file('uni/%25C2%25B5', u'uni/%C2%B5')
84
84
        norm_file('uni/%20b', u'uni/ b')
85
85
        # All the crazy characters get escaped in local paths => file:/// urls
86
 
        norm_file('%27%3B/%3F%3A%40%26%3D%2B%24%2C%23%20', "';/?:@&=+$,#")
 
86
        norm_file('%27%3B/%3F%3A%40%26%3D%2B%24%2C%23%20', "';/?:@&=+$,# ")
87
87
 
88
88
    def test_normalize_url_hybrid(self):
89
89
        # Anything with a scheme:// should be treated as a hybrid url