/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: Canonical.com Patch Queue Manager
  • Date: 2008-07-17 06:17:42 UTC
  • mfrom: (3503.1.2 bzr.serve_all_roots_win32)
  • Revision ID: pqm@pqm.ubuntu.com-20080717061742-zs1bj4n2m7qnzoaf
(Adrian Wilkins) Serve all filesystem roots on Windows (bug #240910)

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