#NEWLINE# def testSubFileEntries( self ) : #NEWLINE# #INDENT# 'Test the sub file entries properties.' #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 . assertEqual ( file_entry . number_of_sub_file_entries , 15 ) #NEWLINE# expected_sub_file_entry_names = [ '$AttrDef' , '$BadClus' , '$Bitmap' , '$Boot' , '$Extend' , '$LogFile' , '$MFT' , '$MFTMirr' , '$Secure' , '$UpCase' , '$Volume' , 'another_file' , 'password.txt' , 'syslog.gz' , 'System Volume Information' ] #NEWLINE# sub_file_entry_names = [ ] #NEWLINE# for sub_file_entry in file_entry . sub_file_entries : #NEWLINE# #INDENT# sub_file_entry_names . append ( sub_file_entry . name ) #NEWLINE# #UNINDENT# self . assertEqual ( len ( sub_file_entry_names ) , len ( expected_sub_file_entry_names ) ) #NEWLINE# self . assertEqual ( sorted ( sub_file_entry_names ) , sorted ( expected_sub_file_entry_names ) )