271
271
# Not a valid _win32 url, no drive letter
272
272
self.assertRaises(InvalidURL, from_url, 'file:///path/to/foo')
276
self.assertEqual(('file:///C:', '/foo'), extract('file://', '/C:/foo'))
277
self.assertEqual(('file:///d|', '/path'), extract('file://', '/d|/path'))
278
self.assertRaises(InvalidURL, extract, 'file://', '/path')
275
281
# Test bzrlib.urlutils.split()