/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: Martin Pool
  • Date: 2008-07-21 07:48:30 UTC
  • mfrom: (3564 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3566.
  • Revision ID: mbp@sourcefrog.net-20080721074830-i1pgj2hswpfo6pav
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
316
316
        #     to_url('C:/path/to/foo '))
317
317
        self.assertEqual('file:///C:/path/to/f%20oo',
318
318
            to_url('C:/path/to/f oo'))
 
319
        
 
320
        self.assertEqual('file:///', to_url('/'))
319
321
 
320
322
        try:
321
323
            result = to_url(u'd:/path/to/r\xe4ksm\xf6rg\xe5s')
348
350
            from_url('file:///d|/path/to/r%C3%A4ksm%C3%B6rg%C3%A5s'))
349
351
        self.assertEqual(u'D:/path/to/r\xe4ksm\xf6rg\xe5s',
350
352
            from_url('file:///d:/path/to/r%c3%a4ksm%c3%b6rg%c3%a5s'))
 
353
        self.assertEqual('/', from_url('file:///'))
351
354
 
352
355
        self.assertRaises(InvalidURL, from_url, '/path/to/foo')
353
356
        # Not a valid _win32 url, no drive letter