def test_relpath_has_dirs(self):
     result = filesystem.common_relpath('/src/path/to/file.txt',
                                        '/dst/path/to/file.txt')
     assert result == 'path/to/file.txt'
 def test_different_src_depth(self):
     result = filesystem.common_relpath('/src/path/file.txt',
                                        '/dst/file.txt')
     assert result == 'file.txt'
 def test_different_root_depths(self):
     result = filesystem.common_relpath('/src/some/path/file.txt',
                                        '/dst/some/path/to/file.txt')
     assert result == 'file.txt'
 def test_file2file(self):
     result = filesystem.common_relpath('/src/file.txt', '/dst/file.txt')
     assert result == 'file.txt'