use __regid__
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2009 19:36:53 +0200
changeset 3450 265331a0920c
parent 3449 063488f14a0f
child 3455 a0a252643227
use __regid__
entities/test/unittest_base.py
--- a/entities/test/unittest_base.py	Wed Sep 23 19:36:31 2009 +0200
+++ b/entities/test/unittest_base.py	Wed Sep 23 19:36:53 2009 +0200
@@ -131,7 +131,7 @@
         self.vreg._loadedmods[__name__] = {}
         for etype in ('Company', 'Division', 'SubDivision'):
             class Foo(AnyEntity):
-                id = etype
+                __regid__ = etype
             self.vreg.register_appobject_class(Foo)
             eclass = self.select_eclass('SubDivision')
             self.failUnless(eclass.__autogenerated__)