[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Memento/tests - MementoBag.py:1.1.2.2

R. David Murray rdmurray@bitdance.com
Tue, 26 Mar 2002 10:12:21 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Memento/tests
In directory cvs.zope.org:/tmp/cvs-serv11990

Modified Files:
      Tag: Zope-3x-branch
	MementoBag.py 
Log Message:
Add test to make sure the object being tested implements the
IMementoBag Interface.


=== Zope3/lib/python/Zope/App/OFS/Memento/tests/MementoBag.py 1.1.2.1 => 1.1.2.2 ===
 """
 
+from Interface.Verify import verifyObject
+from Zope.App.OFS.Memento.IMementoBag import IMementoBag
+
 class MementoBag:
-    "Test the IMementoBag interface"
+    """
+    Test the IMementoBag interface.  Expects the IMementoBag
+    to be in self.bag.
+    """
 
     def setUp(self):
         self.obj = {1: 2, 3: 4}
+
+    def testInterfaceVerifies(self):
+        verifyObject(IMementoBag,self.bag)
 
     def testStorage(self):
         """test __getitem__"""