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