288
295
# Not a valid _win32 url, no drive letter
289
296
self.assertRaises(InvalidURL, from_url, 'file:///path/to/foo')
291
306
def test__win32_extract_drive_letter(self):
292
307
extract = urlutils._win32_extract_drive_letter
293
308
self.assertEqual(('file:///C:', '/foo'), extract('file://', '/C:/foo'))