def test_empty_common_prefix(self): self.assertEqual( pathext.split(pathext.common_prefix( 'dev/python/tests/', '/dev/python/test' )), ('',) )
def test_common_prefix(self): self.assertEqual( pathext.split(pathext.common_prefix( 'dev/python/tests/', 'dev/python/test' )), ('dev', 'python') )
def test_empty_common_prefix(self): self.assertEqual( pathext.split( pathext.common_prefix('dev/python/tests/', '/dev/python/test')), ('', ))
def test_common_prefix(self): self.assertEqual( pathext.split( pathext.common_prefix('dev/python/tests/', 'dev/python/test')), ('dev', 'python'))