#NEWLINE# def testIterateVolumes( self ) : #NEWLINE# #INDENT# 'Test the iterate volumes functionality.' #NEWLINE# volume_system = vshadow_volume_system . VShadowVolumeSystem ( ) #NEWLINE# volume_system . Open ( self . _vshadow_path_spec ) #NEWLINE# self . assertEqual ( volume_system . number_of_volumes , 2 ) #NEWLINE# volume = volume_system . GetVolumeByIndex ( 1 ) #NEWLINE# self . assertIsNotNone ( volume ) #NEWLINE# self . assertEqual ( volume . number_of_extents , 1 ) #NEWLINE# self . assertEqual ( volume . number_of_attributes , 4 ) #NEWLINE# self . assertEqual ( volume . identifier , 'vss2' ) #NEWLINE# expected_value = '600f0b6d-5bdf-11e3-9d6c-005056c00008' #NEWLINE# volume_attribute = volume . GetAttribute ( 'identifier' ) #NEWLINE# self . assertIsNotNone ( volume_attribute ) #NEWLINE# self . assertEqual ( volume_attribute . value , expected_value ) #NEWLINE# expected_value = '18f1ac6e-959d-436f-bdcc-e797a729e290' #NEWLINE# volume_attribute = volume . GetAttribute ( 'copy_identifier' ) #NEWLINE# self . assertIsNotNone ( volume_attribute ) #NEWLINE# self . assertEqual ( volume_attribute . value , expected_value ) #NEWLINE# expected_value = '8438a0ee-0f06-443b-ac0c-2905647ca5d6' #NEWLINE# volume_attribute = volume . GetAttribute ( 'copy_set_identifier' ) #NEWLINE# self . assertIsNotNone ( volume_attribute ) #NEWLINE# self . assertEqual ( volume_attribute . value , expected_value ) #NEWLINE# expected_value = 130305262689190583 #NEWLINE# volume_attribute = volume . GetAttribute ( 'creation_time' ) #NEWLINE# self . assertIsNotNone ( volume_attribute ) #NEWLINE# self . assertEqual ( volume_attribute . value , expected_value ) #NEWLINE# volume = volume_system . GetVolumeByIndex ( 7 ) #NEWLINE# self . assertIsNone ( self )