[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests - testOwned.py:1.1.2.2

Tres Seaver tseaver at zope.com
Fri Mar 12 11:47:39 EST 2004


Update of /cvs-repository/Zope/lib/python/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv9398/lib/python/AccessControl/tests

Modified Files:
      Tag: Zope-2_6-branch
	testOwned.py 
Log Message:


  - Collector #1255:  getWrappedOwner() must return None if the object
    is owned by the UnownableOwner.



=== Zope/lib/python/AccessControl/tests/testOwned.py 1.1.2.1 => 1.1.2.2 ===
--- Zope/lib/python/AccessControl/tests/testOwned.py:1.1.2.1	Mon Jan 26 13:15:42 2004
+++ Zope/lib/python/AccessControl/tests/testOwned.py	Fri Mar 12 11:47:38 2004
@@ -118,6 +118,16 @@
 
         self.assertEqual(wrapped_owner, None)
 
+    def test_getWrappedOwner_unownable(self):
+
+        from AccessControl.Owned import UnownableOwner
+        unownable = self._makeOne()
+        unownable._owner = UnownableOwner
+
+        wrapped_owner = unownable.getWrappedOwner()
+
+        self.assertEqual(wrapped_owner, None)
+
     def test_getWrappedOwner_simple(self):
 
         root = FauxRoot()




More information about the Zope-Checkins mailing list