/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: 2008-03-12 20:13:07 UTC
  • mfrom: (3267 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080312201307-ngd5bynt2nvhnlb7
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
            raise TestSkipped("local encoding cannot handle unicode")
291
291
 
292
292
        self.assertEqual('file:///path/to/r%C3%A4ksm%C3%B6rg%C3%A5s', result)
 
293
        self.assertFalse(isinstance(result, unicode))
293
294
 
294
295
    def test_posix_local_path_from_url(self):
295
296
        from_url = urlutils._posix_local_path_from_url
321
322
            raise TestSkipped("local encoding cannot handle unicode")
322
323
 
323
324
        self.assertEqual('file:///D:/path/to/r%C3%A4ksm%C3%B6rg%C3%A5s', result)
 
325
        self.assertFalse(isinstance(result, unicode))
324
326
 
325
327
    def test_win32_unc_path_to_url(self):
326
328
        to_url = urlutils._win32_local_path_to_url
335
337
            raise TestSkipped("local encoding cannot handle unicode")
336
338
 
337
339
        self.assertEqual('file://HOST/path/to/r%C3%A4ksm%C3%B6rg%C3%A5s', result)
338
 
 
 
340
        self.assertFalse(isinstance(result, unicode))
339
341
 
340
342
    def test_win32_local_path_from_url(self):
341
343
        from_url = urlutils._win32_local_path_from_url
490
492
    def test_escape(self):
491
493
        self.assertEqual('%25', urlutils.escape('%'))
492
494
        self.assertEqual('%C3%A5', urlutils.escape(u'\xe5'))
 
495
        self.assertFalse(isinstance(urlutils.escape(u'\xe5'), unicode))
493
496
 
494
497
    def test_unescape(self):
495
498
        self.assertEqual('%', urlutils.unescape('%25'))