#NEWLINE# def testDataStreams( self ) : #NEWLINE# #INDENT# 'Test the data streams functionality.' #NEWLINE# path_spec = tsk_partition_path_spec . TSKPartitionPathSpec ( part_index = 1 , parent = self . _os_path_spec ) #NEWLINE# file_entry = self . _file_system . GetFileEntryByPathSpec ( path_spec ) #NEWLINE# self . assertIsNotNone ( file_entry ) #NEWLINE# self . assertEqual ( data_stream . number_of_data_streams , 1 ) #NEWLINE# data_stream_names = [ ] #NEWLINE# for data_stream in file_entry . data_streams : #NEWLINE# #INDENT# data_stream_names . append ( data_stream . name ) #NEWLINE# #UNINDENT# self . assertEqual ( data_stream_names , [ '' ] ) #NEWLINE# path_spec = tsk_partition_path_spec . TSKPartitionPathSpec ( location = '/' , parent = self . _os_path_spec ) #NEWLINE# file_entry = self . _file_system . GetFileEntryByPathSpec ( path_spec ) #NEWLINE# self . assertIsNotNone ( file_entry ) #NEWLINE# self . assertEqual ( file_entry . number_of_data_streams , 0 ) #NEWLINE# data_stream_names = [ ] #NEWLINE# for data_stream in file_entry . data_streams : #NEWLINE# #INDENT# data_stream_names . append ( data_stream . name ) #NEWLINE# #UNINDENT# self . assertEqual ( data_stream_names , [ ] )