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')
461
self.assertEqual(('file:///C:', '/'), extract('file://', '/C:/'))
462
self.assertRaises(InvalidURL, extract, 'file://', '/C:')
464
self.assertRaises(InvalidURL, extract, 'file://', '/C')
465
self.assertRaises(InvalidURL, extract, 'file://', '/C:ool')
462
468
# Test bzrlib.urlutils.split()