#NEWLINE# def test_listed_volume_attributes( self ) : #NEWLINE# #INDENT# '\n        ``list_volumes`` returns ``BlockDeviceVolume`` s that have the\n        same dataset_id and (maybe over-allocated size) as was passed\n        to ``create_volume``.\n        ' #NEWLINE# expected_dataset_id = uuid4 ( ) #NEWLINE# self . api . create_volume ( dataset_id = expected_dataset_id , size = self . minimum_allocatable_size ) #NEWLINE# def validate( ) : #NEWLINE# #INDENT# listed_volumes = self . api . list_volumes ( ) #NEWLINE# self . assertEqual ( len ( listed_volumes ) , 1 ) #NEWLINE# listed_volume = listed_volumes [ 0 ] #NEWLINE# self . assertEqual ( ( expected_dataset_id , self . minimum_allocatable_size ) , ( listed_volume . dataset_id , listed_volume . size ) ) #NEWLINE# #UNINDENT# self . repeat_until_consistent ( validate )