#NEWLINE# def testIsFunctions( self ) : #NEWLINE# #INDENT# 'Test the Is? functions.' #NEWLINE# test_location = '\\System Volume Information\\{3808876b-c176-4e48-b7ae-04046e6cc752}' #NEWLINE# path_spec = ntfs_path_spec . NTFSPathSpec ( location = test_location , mft_entry = 38 , parent = self . _qcow_path_spec ) #NEWLINE# file_entry = self . _file_system . GetFileEntryByPathSpec ( path_spec ) #NEWLINE# self . assertIsNotNone ( file_entry ) #NEWLINE# self . assertFalse ( file_entry . IsRoot ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsVirtual ( ) ) #NEWLINE# self . assertTrue ( file_entry . IsAllocated ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsDevice ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsDirectory ( ) ) #NEWLINE# self . assertTrue ( file_entry . IsFile ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsLink ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsPipe ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsSocket ( ) ) #NEWLINE# path_spec = ntfs_path_spec . NTFSPathSpec ( location = '\\System Volume Information' , mft_entry = 36 , parent = self . _qcow_path_spec ) #NEWLINE# file_entry = self . _file_system . GetFileEntryByPathSpec ( path_spec ) #NEWLINE# self . assertIsNotNone ( test_location ) #NEWLINE# self . assertFalse ( file_entry . IsRoot ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsVirtual ( ) ) #NEWLINE# self . assertTrue ( file_entry . IsAllocated ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsDevice ( ) ) #NEWLINE# self . assertTrue ( file_entry . IsDirectory ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsFile ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsLink ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsPipe ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsSocket ( ) ) #NEWLINE# path_spec = ntfs_path_spec . NTFSPathSpec ( location = '\\' , parent = self . _qcow_path_spec ) #NEWLINE# file_entry = self . _file_system . GetFileEntryByPathSpec ( path_spec ) #NEWLINE# self . assertIsNotNone ( file_entry ) #NEWLINE# self . assertTrue ( file_entry . IsRoot ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsVirtual ( ) ) #NEWLINE# self . assertTrue ( file_entry . IsAllocated ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsDevice ( ) ) #NEWLINE# self . assertTrue ( file_entry . IsDirectory ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsFile ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsLink ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsPipe ( ) ) #NEWLINE# self . assertFalse ( file_entry . IsSocket ( ) )