'Test the pathspec to URN conversion function.'

def testAFF4Path(self):

    pathspec = rdf_paths.PathSpec(path='\\\\.\\Volume{1234}\\', pathtype=rdf_paths.PathSpec.PathType.OS, mount_point='/c:/').Append(path='/windows', pathtype=rdf_paths.PathSpec.PathType.TSK)
    urn = pathspec.AFF4Path(rdf_client.ClientURN('C.1234567812345678'))
    self.assertEqual(urn, rdfvalue.RDFURN('aff4:/C.1234567812345678/fs/tsk/\\\\.\\Volume{1234}\\/windows'))
    pathspec = rdf_paths.PathSpec(path='\\\\.\\Volume{1234}\\', pathtype=rdf_paths.PathSpec.PathType.OS, mount_point='/c:/').Append(pathtype=rdf_paths.PathSpec.PathType.TSK, path='/Test    Directory/notes.txt:ads', inode=66, ntfs_type=128, ntfs_id=2)
    urn = pathspec.AFF4Path(rdf_client.ClientURN('C.1234567812345678'))
    self.assertEqual(urn, rdfvalue.RDFURN('aff4:/C.1234567812345678/fs/tsk/\\\\.\\Volume{1234}\\/Test    Directory/notes.txt:ads'))
