Changeset 12281 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Timestamp:
- 21 Dec 2014, 10:35:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_batching.py
r12261 r12281 37 37 IBatchProcessor, FatalCSVError, IUserAccount, VERIFIED) 38 38 from waeup.ikoba.customers.batching import ( 39 CustomerProcessor, Customer DocumentProcessor,ContractProcessor)39 CustomerProcessor, CustomerSampleDocumentProcessor, SampleContractProcessor) 40 40 from waeup.ikoba.customers.customer import Customer 41 41 from waeup.ikoba.customers.documents import CustomerSampleDocument … … 274 274 shutil.rmtree(os.path.dirname(fin_file)) 275 275 276 class Customer DocumentProcessorTest(CustomerImportExportSetup):276 class CustomerSampleDocumentProcessorTest(CustomerImportExportSetup): 277 277 278 278 def setUp(self): 279 super(Customer DocumentProcessorTest, self).setUp()279 super(CustomerSampleDocumentProcessorTest, self).setUp() 280 280 281 281 customer = Customer() … … 292 292 shutil.rmtree(os.path.dirname(fin_file)) 293 293 294 self.processor = Customer DocumentProcessor()294 self.processor = CustomerSampleDocumentProcessor() 295 295 self.csv_file = os.path.join( 296 296 self.workdir, 'sample_document_data.csv') … … 301 301 assert verifyObject(IBatchProcessor, self.processor) is True 302 302 assert verifyClass( 303 IBatchProcessor, Customer DocumentProcessor) is True303 IBatchProcessor, CustomerSampleDocumentProcessor) is True 304 304 305 305 def test_getEntry(self): … … 369 369 # Logging message from updateEntry 370 370 self.assertTrue( 371 'INFO - system - Customer Document Processor - '371 'INFO - system - Customer Sample Document Processor - ' 372 372 'sample_document_data - X666666 - %s - updated: title=My 4th doc' 373 373 % docid in logcontent) … … 404 404 405 405 406 class ContractProcessorTest(CustomerImportExportSetup):406 class SampleContractProcessorTest(CustomerImportExportSetup): 407 407 408 408 def setUp(self): 409 super( ContractProcessorTest, self).setUp()409 super(SampleContractProcessorTest, self).setUp() 410 410 411 411 customer = Customer() … … 422 422 shutil.rmtree(os.path.dirname(fin_file)) 423 423 424 self.processor = ContractProcessor()424 self.processor = SampleContractProcessor() 425 425 self.csv_file = os.path.join( 426 426 self.workdir, 'sample_contract_data.csv') … … 431 431 assert verifyObject(IBatchProcessor, self.processor) is True 432 432 assert verifyClass( 433 IBatchProcessor, ContractProcessor) is True433 IBatchProcessor, SampleContractProcessor) is True 434 434 435 435 def test_getEntry(self): … … 502 502 if len(i) > 10][0] 503 503 self.assertTrue( 504 'INFO - system - Contract Processor - sample_contract_data - '504 'INFO - system - Sample Contract Processor - sample_contract_data - ' 505 505 'X666666 - %s - updated: title=My 4th contract, ' 506 506 'product_object=SAM, document_object=DOC1' % conid
Note: See TracChangeset for help on using the changeset viewer.