Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for the partition file entry implementation using pytsk3. N/A os N/A unittest dfvfs.path os_path_spec dfvfs.path tsk_partition_path_spec dfvfs.resolver context dfvfs.vfs tsk_partition_file_entry dfvfs.vfs tsk_partition_file_system TSKPartitionFileEntryTest N/A N/A unittest TestCase N/A N/A The unit test for the TSK partition file entry object. setUp N/A N/A self N/A N/A N/A Sets up the needed objects used throughout the test. N/A N/A self _resolver_context N/A N/A context Context N/A test_file N/A N/A N/A os path join test_data tsk_volume_system.raw N/A N/A self _os_path_spec N/A N/A os_path_spec OSPathSpec location test_file N/A N/A self _tsk_partition_path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec location / parent N/A self _os_path_spec N/A N/A self _file_system N/A N/A tsk_partition_file_system TSKPartitionFileSystem N/A self _resolver_context N/A N/A N/A N/A self _file_system Open N/A self _tsk_partition_path_spec N/A tearDown N/A N/A self N/A N/A N/A Cleans up the needed objects used throughout the test. N/A N/A N/A N/A self _file_system Close N/A testIntialize N/A N/A self N/A N/A N/A Test the initialize functionality. N/A file_entry N/A N/A tsk_partition_file_entry TSKPartitionFileEntry N/A self _resolver_context N/A self _file_system N/A self _tsk_partition_path_spec N/A N/A N/A self assertIsNotNone file_entry N/A testGetParentFileEntry N/A N/A self N/A N/A N/A Tests the GetParentFileEntry function. N/A path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec part_index 1 parent N/A self _os_path_spec N/A file_entry N/A N/A N/A self _file_system GetFileEntryByPathSpec path_spec N/A N/A N/A self assertIsNotNone file_entry N/A parent_file_entry N/A N/A file_entry GetParentFileEntry N/A N/A N/A self assertIsNone parent_file_entry N/A testGetStat N/A N/A self N/A N/A N/A Tests the GetStat function. N/A path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec part_index 1 parent N/A self _os_path_spec N/A file_entry N/A N/A N/A self _file_system GetFileEntryByPathSpec path_spec N/A N/A N/A self assertIsNotNone file_entry N/A stat_object N/A N/A file_entry GetStat N/A N/A N/A self assertIsNotNone stat_object N/A N/A N/A self assertEqual N/A stat_object type N/A stat_object TYPE_FILE N/A N/A N/A self assertEqual N/A stat_object size 512 N/A testIsFunctions N/A N/A self N/A N/A N/A Test the Is? functions. N/A path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec part_index 1 parent N/A self _os_path_spec N/A file_entry N/A N/A N/A self _file_system GetFileEntryByPathSpec path_spec N/A N/A N/A self assertIsNotNone file_entry N/A N/A N/A self assertFalse N/A N/A file_entry IsRoot N/A N/A N/A self assertFalse N/A N/A file_entry IsVirtual N/A N/A N/A self assertFalse N/A N/A file_entry IsAllocated N/A N/A N/A self assertFalse N/A N/A file_entry IsDevice N/A N/A N/A self assertFalse N/A N/A file_entry IsDirectory N/A N/A N/A self assertTrue N/A N/A file_entry IsFile N/A N/A N/A self assertFalse N/A N/A file_entry IsLink N/A N/A N/A self assertFalse N/A N/A file_entry IsPipe N/A N/A N/A self assertFalse N/A N/A file_entry IsSocket N/A path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec location / parent N/A self _os_path_spec N/A file_entry N/A N/A N/A self _file_system GetFileEntryByPathSpec path_spec N/A N/A N/A self assertIsNotNone file_entry N/A N/A N/A self assertTrue N/A N/A file_entry IsRoot N/A N/A N/A self assertTrue N/A N/A file_entry IsVirtual N/A N/A N/A self assertTrue N/A N/A file_entry IsAllocated N/A N/A N/A self assertFalse N/A N/A file_entry IsDevice N/A N/A N/A self assertTrue N/A N/A file_entry IsDirectory N/A N/A N/A self assertFalse N/A N/A file_entry IsFile N/A N/A N/A self assertFalse N/A N/A file_entry IsLink N/A N/A N/A self assertFalse N/A N/A file_entry IsPipe N/A N/A N/A self assertFalse N/A N/A file_entry IsSocket N/A testSubFileEntries N/A N/A self N/A N/A N/A Test the sub file entries iteration functionality. N/A path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec location / parent N/A self _os_path_spec N/A file_entry N/A N/A N/A self _file_system GetFileEntryByPathSpec path_spec N/A N/A N/A self assertIsNotNone file_entry N/A N/A N/A self assertEqual N/A file_entry number_of_sub_file_entries 7 N/A expected_sub_file_entry_names N/A p1 p2 N/A sub_file_entry_names N/A N/A sub_file_entry N/A file_entry sub_file_entries N/A N/A N/A N/A sub_file_entry_names append N/A sub_file_entry name N/A N/A N/A self assertEqual N/A len sub_file_entry_names N/A len expected_sub_file_entry_names N/A N/A N/A self assertEqual N/A sorted sub_file_entry_names N/A sorted expected_sub_file_entry_names N/A testDataStreams N/A N/A self N/A N/A N/A Test the data streams functionality. N/A path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec part_index 1 parent N/A self _os_path_spec N/A file_entry N/A N/A N/A self _file_system GetFileEntryByPathSpec path_spec N/A N/A N/A self assertIsNotNone file_entry N/A N/A N/A self assertEqual N/A file_entry number_of_data_streams 1 N/A data_stream_names N/A N/A data_stream N/A file_entry data_streams N/A N/A N/A N/A data_stream_names append N/A data_stream name N/A N/A N/A self assertEqual data_stream_names N/A N/A path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec location / parent N/A self _os_path_spec N/A file_entry N/A N/A N/A self _file_system GetFileEntryByPathSpec path_spec N/A N/A N/A self assertIsNotNone file_entry N/A N/A N/A self assertEqual N/A file_entry number_of_data_streams 0 N/A data_stream_names N/A N/A data_stream N/A file_entry data_streams N/A N/A N/A N/A data_stream_names append N/A data_stream name N/A N/A N/A self assertEqual data_stream_names N/A N/A testGetDataStream N/A N/A self N/A N/A N/A Tests the GetDataStream function. N/A path_spec N/A N/A tsk_partition_path_spec TSKPartitionPathSpec part_index 1 parent N/A self _os_path_spec N/A file_entry N/A N/A N/A self _file_system GetFileEntryByPathSpec path_spec N/A N/A N/A self assertIsNotNone file_entry N/A data_stream_name N/A data_stream N/A N/A file_entry GetDataStream data_stream_name N/A N/A N/A self assertIsNotNone data_stream N/A N/A N/A self assertEqual N/A data_stream name data_stream_name N/A data_stream N/A N/A file_entry GetDataStream bogus N/A N/A N/A self assertIsNone data_stream N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main