- Timestamp:
- 13 Nov 2014, 14:40:27 (10 years ago)
- Location:
- main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_reports.py
r9672 r11949 11 11 from zope.component.hooks import setSite 12 12 from zope.interface.verify import verifyClass, verifyObject 13 from waeup. kofa.interfaces import IJobManager, IKofaPluggable14 from waeup. kofa.reports import (13 from waeup.ikoba.interfaces import IJobManager, IIkobaPluggable 14 from waeup.ikoba.reports import ( 15 15 IReport, IReportGenerator, IReportJob, IReportJobContainer, 16 16 IReportsContainer,) 17 from waeup. kofa.reports import (17 from waeup.ikoba.reports import ( 18 18 Report, ReportGenerator, get_generators, report_job, AsyncReportJob, 19 19 ReportJobContainer, ReportsContainer, ReportsContainerPlugin) 20 from waeup. kofa.testing import FakeJob, FakeJobManager, FunctionalLayer21 from waeup. kofa.tests.test_async import FunctionalAsyncTestCase20 from waeup.ikoba.testing import FakeJob, FakeJobManager, FunctionalLayer 21 from waeup.ikoba.tests.test_async import FunctionalAsyncTestCase 22 22 23 23 class FakeReportGenerator(ReportGenerator): … … 77 77 class ReportGeneratorTest(unittest.TestCase): 78 78 def setUp(self): 79 grok.testing.grok('waeup. kofa.reports') # register utils79 grok.testing.grok('waeup.ikoba.reports') # register utils 80 80 81 81 def test_iface(self): … … 117 117 118 118 def setUp(self): 119 grok.testing.grok('waeup. kofa.reports') # register utils119 grok.testing.grok('waeup.ikoba.reports') # register utils 120 120 super(HelpersTests, self).setUp() 121 121 return … … 361 361 def create_logger(self): 362 362 # create a logger suitable for local tests. 363 test_logger = logging.getLogger('waeup. kofa.reports.testlogger')363 test_logger = logging.getLogger('waeup.ikoba.reports.testlogger') 364 364 log = StringIO() 365 365 handler = logging.StreamHandler(log) … … 393 393 # make sure we fullfill the promised interfaces 394 394 obj = ReportsContainerPlugin() 395 verifyClass(I KofaPluggable, ReportsContainerPlugin)396 verifyObject(I KofaPluggable, obj)395 verifyClass(IIkobaPluggable, ReportsContainerPlugin) 396 verifyObject(IIkobaPluggable, obj) 397 397 return 398 398 399 399 def test_get_as_utility(self): 400 400 # make sure we can get the plugin as utility 401 grok.testing.grok('waeup. kofa.reports')402 util = getUtility(I KofaPluggable, name='reports')401 grok.testing.grok('waeup.ikoba.reports') 402 util = getUtility(IIkobaPluggable, name='reports') 403 403 self.assertTrue(util is not None) 404 404 return
Note: See TracChangeset for help on using the changeset viewer.