~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_urlutils.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-07 14:20:10 UTC
  • mfrom: (6123.1.10 +trunk)
  • mto: (6123.1.12 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6124.
  • Revision ID: jriddell@canonical.com-20110907142010-kncwzcbpsxd714ug
mergeĀ inĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
457
457
        self.assertEqual(('file:///C:', '/foo'), extract('file://', '/C:/foo'))
458
458
        self.assertEqual(('file:///d|', '/path'), extract('file://', '/d|/path'))
459
459
        self.assertRaises(InvalidURL, extract, 'file://', '/path')
 
460
        # Root drives without slash treated as invalid, see bug #841322
 
461
        self.assertEqual(('file:///C:', '/'), extract('file://', '/C:/'))
 
462
        self.assertRaises(InvalidURL, extract, 'file://', '/C:')
 
463
        # Invalid without drive separator or following forward slash
 
464
        self.assertRaises(InvalidURL, extract, 'file://', '/C')
 
465
        self.assertRaises(InvalidURL, extract, 'file://', '/C:ool')
460
466
 
461
467
    def test_split(self):
462
468
        # Test bzrlib.urlutils.split()