~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_urlutils.py

  • Committer: Jared Bunting
  • Date: 2010-10-21 22:27:43 UTC
  • mto: This revision was merged to the branch mainline in revision 5514.
  • Revision ID: jared.bunting@peachjean.com-20101021222743-tn9n0cgzg3z8cb25
Changed _win32_local_path_from_url to not allow "file:///C:" form.

Show diffs side-by-side

added added

removed removed

Lines of Context:
418
418
        self.assertEqual(u'D:/path/to/r\xe4ksm\xf6rg\xe5s',
419
419
            from_url('file:///d:/path/to/r%c3%a4ksm%c3%b6rg%c3%a5s'))
420
420
        self.assertEqual('/', from_url('file:///'))
421
 
        self.assertEqual('C:', from_url('file:///C:'))
422
421
 
 
422
        self.assertRaises(InvalidURL, from_url, 'file:///C:')
423
423
        self.assertRaises(InvalidURL, from_url, 'file:///c')
424
424
        self.assertRaises(InvalidURL, from_url, '/path/to/foo')
425
425
        # Not a valid _win32 url, no drive letter