Пример #1
0
 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')
Пример #2
0
 def test_path2url(self):
     """ test path2url """
     self.assertEqual(utils.path2url('/opt/local/a.json'), 'file:///opt/local/a.json')
Пример #3
0
 def test_path2url_on_unix(self):
     """ test path2url """
     self.assertEqual(utils.path2url('/opt/local/a.json'),
                      'file:///opt/local/a.json')
Пример #4
0
 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')