Пример #1
0
 def test_empty_common_prefix(self):
     self.assertEqual(
         pathext.split(pathext.common_prefix(
             'dev/python/tests/',
             '/dev/python/test'
         )),
         ('',)
     )
Пример #2
0
 def test_common_prefix(self):
     self.assertEqual(
         pathext.split(pathext.common_prefix(
             'dev/python/tests/',
             'dev/python/test'
         )),
         ('dev', 'python')
     )
Пример #3
0
 def test_empty_common_prefix(self):
     self.assertEqual(
         pathext.split(
             pathext.common_prefix('dev/python/tests/',
                                   '/dev/python/test')), ('', ))
Пример #4
0
 def test_common_prefix(self):
     self.assertEqual(
         pathext.split(
             pathext.common_prefix('dev/python/tests/', 'dev/python/test')),
         ('dev', 'python'))