[Zope-CVS] CVS: Packages/pypes/pypes/tests - test_extent.py:1.13
Casey Duncan
casey at zope.com
Wed Apr 21 01:27:26 EDT 2004
Update of /cvs-repository/Packages/pypes/pypes/tests
In directory cvs.zope.org:/tmp/cvs-serv11565/tests
Modified Files:
test_extent.py
Log Message:
Add sameTypeAs() method to check if extents can be combined and compared efficiently
=== Packages/pypes/pypes/tests/test_extent.py 1.12 => 1.13 ===
--- Packages/pypes/pypes/tests/test_extent.py:1.12 Sun Mar 7 05:09:13 2004
+++ Packages/pypes/pypes/tests/test_extent.py Wed Apr 21 01:27:25 2004
@@ -497,6 +497,15 @@
self.failUnless(foo_extent.issuperset(bar_extent))
self.failUnless(foo_extent.issubset(bar_extent))
+ def testSameTypeAs(self):
+ from pypes.extent import classKey, Extent
+ foo_extent, nil = self.makeExtent(FooClass)
+ bar_extent, nil = self.makeExtent(BarClass)
+ self.failUnless(foo_extent.sameTypeAs(bar_extent))
+ class_keys = OOTreeSet([classKey(FooClass)])
+ extent = Extent(class_keys, self.instances.copy(), FooClass)
+ self.failIf(foo_extent.sameTypeAs(extent))
+
class ITestExtent(PypesTestCase):
# Extent integration tests
More information about the Zope-CVS
mailing list