Ignore:
Timestamp:
9 Feb 2015, 08:30:13 (10 years ago)
Author:
Henrik Bettermann
Message:

Add 'Registration in the Provisional Register' contract.

File:
1 edited

Legend:

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

    r12499 r12571  
    2929
    3030from ikobacustom.pcn.testing import (FunctionalLayer, FunctionalTestCase)
    31 from ikobacustom.pcn.customers.contracts import RONContract, ROPContract
    32 from ikobacustom.pcn.customers.interfaces import IRONContract, IROPContract
     31from ikobacustom.pcn.customers.contracts import (
     32    RONContract,
     33    ROPContract,
     34    RPRContract,
     35    )
     36from ikobacustom.pcn.customers.interfaces import (
     37    IRONContract,
     38    IROPContract,
     39    IRPRContract,
     40    )
    3341
    3442
     
    4452        verify.verifyObject(IROPContract, ROPContract())
    4553        verify.verifyObject(ICustomerNavigation, ROPContract())
     54        verify.verifyObject(IRPRContract, RPRContract())
     55        verify.verifyObject(ICustomerNavigation, RPRContract())
    4656        return
    4757
     
    5969        container.addContract(contract2)
    6070        self.assertEqual(container[id2], contract2)
    61         self.assertRaises(TypeError, container.addContract, object())
    6271        self.assertEqual(contract2.class_name, 'ROPContract')
     72
     73        contract3 = createObject(u'waeup.RPRContract')
     74        id3 = contract3.contract_id
     75        container.addContract(contract3)
     76        self.assertEqual(container[id3], contract3)
     77        self.assertEqual(contract3.class_name, 'RPRContract')
    6378        return
Note: See TracChangeset for help on using the changeset viewer.