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

Fred L. Drake, Jr. fdrake@acm.org
Wed, 20 Mar 2002 12:03:21 -0500


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

Modified Files:
	testJob.py 
Log Message:
Update the Job implementation to match the IJob interface.

=== Packages/JobBoardEx/tests/testJob.py 1.2 => 1.3 ===
 
     def test_initialization(self):
-        self.job.getId()
-        self.assertEqual(self.job.getSubmitter(), 'submitter')
-        self.assertEqual(self.job.getSummary(), 'summary')
-        self.assertEqual(self.job.getDescription(), 'description')
-        self.assertEqual(self.job.getContactURL(), 'contactURL')
-        self.assertEqual(self.job.getContactEmail(), 'contactEmail')
-        self.assertEqual(self.job.getState(), JobState.PendingApproval)
+        job = self.job
+        self.assertEqual(job.id, "id")
+        self.assertEqual(job.submitter, 'submitter')
+        self.assertEqual(job.summary, 'summary')
+        self.assertEqual(job.description, 'description')
+        self.assertEqual(job.contactURL, 'contactURL')
+        self.assertEqual(job.contactEmail, 'contactEmail')
+        self.assertEqual(job.state, JobState.PendingApproval)
 
     def test_states(self):
         self.job.approve()
-        self.assertEqual(self.job.getState(), JobState.Approved)
+        self.assertEqual(self.job.state, JobState.Approved)
 
 def test_suite():
     return unittest.TestSuite((unittest.makeSuite(JobTestCase),))