Changeset 8219 for main/waeup.kofa/trunk


Ignore:
Timestamp:
19 Apr 2012, 14:16:39 (13 years ago)
Author:
uli
Message:

Test at least interface of basic batch processor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_batching.py

    r8202 r8219  
    2929from zope.interface import Interface, implements, verify
    3030from waeup.kofa.app import University
    31 from waeup.kofa.interfaces import ICSVExporter
     31from waeup.kofa.interfaces import ICSVExporter, IBatchProcessor
    3232from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    3333from waeup.kofa.utils.batching import ExporterBase
     
    170170        return
    171171
     172    def test_iface(self):
     173        # make sure we fullfill interface contracts
     174        obj = BatchProcessor()
     175        verify.verifyClass(IBatchProcessor, BatchProcessor)
     176        verify.verifyObject(IBatchProcessor, obj)
     177        return
     178
    172179    def test_import(self):
    173180        processor = CaveProcessor()
Note: See TracChangeset for help on using the changeset viewer.