Changeset 9113
- Timestamp:
- 26 Aug 2012, 13:40:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/utils/tests/test_batching.py
r9096 r9113 537 537 self.assertTrue(not os.path.exists(fake_job.result)) 538 538 return 539 540 def test_entry_from_job_id(self): 541 # we can get an entry for a job_id if the id exists 542 container = ExportJobContainer() 543 entry = ('4', 'cave_exporter', 'bob') 544 container.running_exports = [entry] 545 fake_job = FakeJobWithResult() 546 self.job_manager._jobs['4'] = fake_job 547 result1 = container.entry_from_job_id(None) 548 result2 = container.entry_from_job_id('4') 549 result3 = container.entry_from_job_id('23') 550 self.assertEqual(result1, None) 551 self.assertEqual(result2, ('4', 'cave_exporter', 'bob')) 552 self.assertEqual(result3, None) 553 return
Note: See TracChangeset for help on using the changeset viewer.