'Test opening a file through an indirect pathspec.'

def testTSKFileInode(self):

    pathspec = rdf_paths.PathSpec(path=os.path.join(self.base_path, 'test_img.dd'), pathtype=rdf_paths.PathSpec.PathType.OS)
    pathspec.Append(pathtype=rdf_paths.PathSpec.PathType.TSK, inode=12, path='/Test    Directory')
    pathspec.Append(pathtype=rdf_paths.PathSpec.PathType.TSK, path='numbers.txt')
    fd = vfs.VFSOpen(pathspec)
    self.assertEqual(fd.pathspec.first.path, utils.NormalizePath(os.path.join(self.base_path, 'test_img.dd')))
    self.assertEqual(fd.pathspec[1].path, '/Test    Directory/numbers.txt')
    self.assertEqual(fd.Stat().pathspec.nested_path.inode, 15)
    self.TestFileHandling(fd)
