- Timestamp:
- 9 Feb 2015, 08:30:13 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_contract.py
r12499 r12571 29 29 30 30 from ikobacustom.pcn.testing import (FunctionalLayer, FunctionalTestCase) 31 from ikobacustom.pcn.customers.contracts import RONContract, ROPContract 32 from ikobacustom.pcn.customers.interfaces import IRONContract, IROPContract 31 from ikobacustom.pcn.customers.contracts import ( 32 RONContract, 33 ROPContract, 34 RPRContract, 35 ) 36 from ikobacustom.pcn.customers.interfaces import ( 37 IRONContract, 38 IROPContract, 39 IRPRContract, 40 ) 33 41 34 42 … … 44 52 verify.verifyObject(IROPContract, ROPContract()) 45 53 verify.verifyObject(ICustomerNavigation, ROPContract()) 54 verify.verifyObject(IRPRContract, RPRContract()) 55 verify.verifyObject(ICustomerNavigation, RPRContract()) 46 56 return 47 57 … … 59 69 container.addContract(contract2) 60 70 self.assertEqual(container[id2], contract2) 61 self.assertRaises(TypeError, container.addContract, object())62 71 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') 63 78 return
Note: See TracChangeset for help on using the changeset viewer.