'Test that with no service latest versions are selected.'

@mock.patch('cinder.objects.Service.get_minimum_rpc_version', return_value=None)
@mock.patch('cinder.objects.Service.get_minimum_obj_version', return_value=None)
@mock.patch('cinder.objects.base.CinderObjectSerializer')
@mock.patch('cinder.rpc.get_client')
def test_init_none_caps(self, get_client, serializer, get_min_obj, get_min_rpc):

    FakeAPI()
    serializer.assert_called_once_with(base.OBJ_VERSIONS.get_current())
    get_client.assert_called_once_with(mock.ANY, version_cap=FakeAPI.RPC_API_VERSION, serializer=serializer.return_value)
    self.assertTrue(get_min_obj.called)
    self.assertTrue(get_min_rpc.called)
