300
299
from_url('file:///path/to/r%C3%A4ksm%C3%B6rg%C3%A5s'))
301
300
self.assertEqual(u'/path/to/r\xe4ksm\xf6rg\xe5s',
302
301
from_url('file:///path/to/r%c3%a4ksm%c3%b6rg%c3%a5s'))
304
305
self.assertRaises(InvalidURL, from_url, '/path/to/foo')
306
310
def test_win32_local_path_to_url(self):
307
311
to_url = urlutils._win32_local_path_to_url