#NEWLINE# def test_attach_attached_volume( self ) : #NEWLINE# #INDENT# '\n        An attempt to attach an already attached ``BlockDeviceVolume`` raises\n        ``AlreadyAttachedVolume``.\n        ' #NEWLINE# dataset_id = uuid4 ( ) #NEWLINE# new_volume = self . api . create_volume ( dataset_id = dataset_id , size = self . minimum_allocatable_size ) #NEWLINE# attached_volume = self . api . attach_volume ( new_volume . blockdevice_id , attach_to = self . this_node ) #NEWLINE# self . assertRaises ( AlreadyAttachedVolume , self . api . attach_volume , blockdevice_id = attached_volume . blockdevice_id , attach_to = self . this_node )