/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_urlutils.py

  • Committer: Andrew Bennetts
  • Date: 2006-12-22 05:56:08 UTC
  • mto: (2432.3.7 hpss-vfs-fallback)
  • mto: This revision was merged to the branch mainline in revision 2463.
  • Revision ID: andrew.bennetts@canonical.com-20061222055608-t1cfil9ws1l95k0f
normalize_url should normalise escaping of unreserved characters, like '~'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
        eq('http://host/ab/%C2%B5/%C2%B5',
116
116
            normalize_url(u'http://host/ab/%C2%B5/\xb5'))
117
117
 
 
118
        # Unescape characters that don't need to be escaped
 
119
        eq('http://host/~bob%2525-._',
 
120
                normalize_url('http://host/%7Ebob%2525%2D%2E%5F'))
 
121
        eq('http://host/~bob%2525-._',
 
122
                normalize_url(u'http://host/%7Ebob%2525%2D%2E%5F'))
 
123
 
118
124
        # Normalize verifies URLs when they are not unicode
119
125
        # (indicating they did not come from the user)
120
126
        self.assertRaises(InvalidURL, normalize_url, 'http://host/\xb5')