def test_path2url_on_windows(self): """ test path2url on windows """ self.assertEqual(utils.path2url(r'C:\opt\local\a.json'), 'file:///C:/opt/local/a.json')
def test_path2url(self): """ test path2url """ self.assertEqual(utils.path2url('/opt/local/a.json'), 'file:///opt/local/a.json')
def test_path2url_on_unix(self): """ test path2url """ self.assertEqual(utils.path2url('/opt/local/a.json'), 'file:///opt/local/a.json')
def test_path2url_on_windows(self): """ test path2url on windows """ self.assertEqual(utils.path2url(r'C:\opt\local\a.json'), 'file:///C:/opt/local/a.json')