#NEWLINE# def test_attach_elsewhere_attached_volume( self ) : #NEWLINE# #INDENT# '\n        An attempt to attach a ``BlockDeviceVolume`` already attached to\n        another host raises ``AlreadyAttachedVolume``.\n        ' #NEWLINE# another_node = ( self . this_node + '-different' ) #NEWLINE# new_volume = self . api . create_volume ( dataset_id = uuid4 ( ) , 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 = self . blockdevice_id , attach_to = another_node )