'Test volume can\'t be force delete in attached state.'

def test_cannot_force_delete_attached_volume(self):

    volume = tests_utils.create_volume(self.context, CONF.host, status='in-use', attach_status=fields.VolumeAttachStatus.ATTACHED)
    self.assertRaises(exception.InvalidVolume, self.volume_api.delete, self.context, volume, force=True)
    db.volume_destroy(self.context, volume.id)
