entities/test/unittest_base.py
changeset 4491 a0f48c31b58a
parent 4252 6c4f109c2b03
child 5174 78438ad513ca
child 5421 8167de96c523
--- a/entities/test/unittest_base.py	Mon Feb 08 11:08:55 2010 +0100
+++ b/entities/test/unittest_base.py	Mon Feb 08 12:01:15 2010 +0100
@@ -107,7 +107,7 @@
         class MyUser(CWUser):
             __implements__ = (IMileStone,)
         self.vreg._loadedmods[__name__] = {}
-        self.vreg.register_appobject_class(MyUser)
+        self.vreg.register(MyUser)
         self.vreg['etypes'].initialization_completed()
         MyUser_ = self.vreg['etypes'].etype_class('CWUser')
         # a copy is done systematically
@@ -137,7 +137,7 @@
         for etype in ('Company', 'Division', 'SubDivision'):
             class Foo(AnyEntity):
                 __regid__ = etype
-            self.vreg.register_appobject_class(Foo)
+            self.vreg.register(Foo)
             eclass = self.select_eclass('SubDivision')
             self.failUnless(eclass.__autogenerated__)
             self.failIf(eclass is Foo)