[Zope-CVS] CVS: Packages/JobBoardEx/tests - testJobList.py:1.3

Jeremy Hylton jeremy@zope.com
Tue, 19 Mar 2002 17:30:07 -0500


Update of /cvs-repository/Packages/JobBoardEx/tests
In directory cvs.zope.org:/tmp/cvs-serv24382/tests

Modified Files:
	testJobList.py 
Log Message:
Add IJobList interface




=== Packages/JobBoardEx/tests/testJobList.py 1.2 => 1.3 ===
 
 from ZopeProducts.JobBoardEx.JobList import JobList
+from ZopeProducts.JobBoardEx.IJobList import IJobList
+
+from Interface.Verify import verifyClass, verifyObject
 
 class Job:
     def __init__(self, state):
@@ -22,6 +25,10 @@
         self.list.remove(j1)
         l = self.list.query("foo")
         self.assertEqual(l, [])
+
+    def testInterface(self):
+        verifyClass(IJobList, JobList)
+        verifyObject(IJobList, self.list)
 
 def test_suite():
     return unittest.makeSuite(JobListTests)