'Tests that requesting a microversion against a v2 client will raise
an exception.'

@mock.patch('cinderclient.client.get_volume_api_from_url', return_value='2')
def test_create_v2_client_with_microversion_fails(self, get_volume_api):

    self.assertRaises(exception.CinderAPIVersionNotAvailable, cinder.cinderclient, self.ctxt, microversion='3.27')
    get_volume_api.assert_called_once_with(self.mock_session.get_endpoint.return_value)
