'Test that class init method gets called on registration.'

@mock.patch('cinder.objects.base.objects', mock.Mock())
def test_cls_init(self):

    @objects.base.CinderObjectRegistry.register
    class MyTestObject(objects.base.CinderObject, objects.base.CinderPersistentObject, ):
        cinder_ovo_cls_init = mock.Mock()
    MyTestObject.cinder_ovo_cls_init.assert_called_once_with()
