Changeset 9092


Ignore:
Timestamp:
8 Aug 2012, 14:07:44 (12 years ago)
Author:
uli
Message:

Add interface tests for AsyncExportJob?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/utils/tests/test_batching.py

    r9090 r9092  
    2323import tempfile
    2424import unittest
     25from zc.async.interfaces import IJob
    2526from zope import schema
    2627from zope.component import provideUtility, getGlobalSiteManager
     
    3334from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    3435from waeup.kofa.utils.batching import (
    35     ExporterBase, BatchProcessor, export_job)
     36    ExporterBase, BatchProcessor, export_job, AsyncExportJob)
    3637
    3738optionflags = (
     
    368369        self.assertEqual(contents, SAMPLE_DATA)
    369370        return
     371
     372    def test_export_job_interfaces(self):
     373        # the AsyncExportJob implements promised interfaces correctly...
     374        job = AsyncExportJob(None, None)
     375        verify.verifyClass(IJob, AsyncExportJob)
     376        verify.verifyObject(IJob, job)
     377        return
Note: See TracChangeset for help on using the changeset viewer.