~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_urlutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-09-01 20:21:14 UTC
  • mfrom: (6113.1.4 wt-foreign-test-fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20110901202114-g5ayj75lq9f47sch
(jelmer) Various fixes to allow tests to run against foreign branches.
 (Jelmer Vernooij)

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')
466
460
 
467
461
    def test_split(self):
468
462
        # Test bzrlib.urlutils.split()