'Test our ability to read the correct casing from image.'

def testTSKFileCasing(self):

    path = os.path.join(self.base_path, 'test_img.dd')
    path2 = os.path.join('test    directory', 'NuMbErS.TxT')
    ps2 = rdf_paths.PathSpec(path=path2, pathtype=rdf_paths.PathSpec.PathType.TSK)
    ps = rdf_paths.PathSpec(path=path, pathtype=rdf_paths.PathSpec.PathType.OS)
    ps.Append(ps2)
    fd = vfs.VFSOpen(ps)
    path = path.replace('\\', '/')
    self.assertEqual(fd.pathspec.first.path, utils.NormalizePath(path))
    self.assertEqual(fd.pathspec.first.pathtype, rdf_paths.PathSpec.PathType.OS)
    nested = fd.pathspec.last
    self.assertEqual(nested.path, u'/Test    Directory/numbers.txt')
    self.assertEqual(nested.pathtype, rdf_paths.PathSpec.PathType.TSK)
