#NEWLINE# def test_attach_unattached_volume( self ) : #NEWLINE# #INDENT# '\n        An unattached ``BlockDeviceVolume`` can be attached.\n        ' #NEWLINE# dataset_id = uuid4 ( ) #NEWLINE# new_volume = self . api . create_volume ( dataset_id = dataset_id , size = self . minimum_allocatable_size ) #NEWLINE# expected_volume = BlockDeviceVolume ( blockdevice_id = new_volume . blockdevice_id , size = new_volume . size , attached_to = self . this_node , dataset_id = dataset_id ) #NEWLINE# attached_volume = self . api . attach_volume ( blockdevice_id = new_volume . blockdevice_id , attach_to = self . this_node ) #NEWLINE# self . assertEqual ( new_volume , attached_volume )