[Zodb-checkins] CVS: Zope3/src/zodb/code/tests - test_class.py:1.4
Jeremy Hylton
jeremy@zope.com
Tue, 28 Jan 2003 17:03:47 -0500
Update of /cvs-repository/Zope3/src/zodb/code/tests
In directory cvs.zope.org:/tmp/cvs-serv19372/tests
Modified Files:
test_class.py
Log Message:
Fix extend_attr() so that it doesn't provide default values for
attributes that don't exist on the instances.
=== Zope3/src/zodb/code/tests/test_class.py 1.3 => 1.4 ===
--- Zope3/src/zodb/code/tests/test_class.py:1.3 Fri Jan 24 18:20:54 2003
+++ Zope3/src/zodb/code/tests/test_class.py Tue Jan 28 17:03:44 2003
@@ -86,6 +86,7 @@
self.assertEqual(Foo2(12).var, 12)
x = self._load_name("testclass.x")
self.assertEqual(x.var, 12)
+ self.assert_(not hasattr(x, "_p_oid"))
class_interface = """class Foo:
__implements__ = 1""" + "\n"