Ignore:
Timestamp:
11 Feb 2015, 10:44:28 (10 years ago)
Author:
Henrik Bettermann
Message:

Add Registration as Pharmaceutical Chemist contract.

Location:
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py

    r12558 r12591  
    475475        # First we add a submitted document and a product.
    476476        IWorkflowState(self.document).setState('submitted')
     477        self.contract.title = u'Contract Title'
    477478        self.contract.document_object = self.document
    478479        self.contract.product_object = self.product
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_contract.py

    r12571 r12591  
    3333    ROPContract,
    3434    RPRContract,
     35    RPCContract,
    3536    )
    3637from ikobacustom.pcn.customers.interfaces import (
     
    3839    IROPContract,
    3940    IRPRContract,
     41    IRPCContract,
    4042    )
    4143
     
    5456        verify.verifyObject(IRPRContract, RPRContract())
    5557        verify.verifyObject(ICustomerNavigation, RPRContract())
     58        verify.verifyObject(IRPCContract, RPCContract())
     59        verify.verifyObject(ICustomerNavigation, RPCContract())
    5660        return
    5761
     
    7680        self.assertEqual(container[id3], contract3)
    7781        self.assertEqual(contract3.class_name, 'RPRContract')
     82
     83        contract4 = createObject(u'waeup.RPCContract')
     84        id4 = contract4.contract_id
     85        container.addContract(contract4)
     86        self.assertEqual(container[id4], contract4)
     87        self.assertEqual(contract4.class_name, 'RPCContract')
    7888        return
Note: See TracChangeset for help on using the changeset viewer.