'Tests that CinderAPIVersionNotAvailable is passed back through
if 3.27 isn\'t available.'

@mock.patch('nova.volume.cinder.cinderclient', side_effect=exception.CinderAPIVersionNotAvailable(version='3.27'))
def test_attachment_create_unsupported_api_version(self, mock_cinderclient):

    self.assertRaises(exception.CinderAPIVersionNotAvailable, self.api.attachment_create, self.ctx, uuids.volume_id, uuids.instance_id)
    mock_cinderclient.assert_called_once_with(self.ctx, '3.27')
