Changeset 12262 for main/waeup.ikoba/trunk/src/waeup/ikoba
- Timestamp:
- 19 Dec 2014, 08:24:55 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12259 r12262 44 44 from waeup.ikoba.interfaces import ( 45 45 IUserAccount, IJobManager, APPROVED, SUBMITTED, 46 IFileStoreNameChooser, IExtFileStore, IFileStoreHandler )46 IFileStoreNameChooser, IExtFileStore, IFileStoreHandler, NotIdValue) 47 47 from waeup.ikoba.imagestorage import ( 48 48 FileStoreNameChooser, ExtFileStore, DefaultFileStoreHandler, … … 121 121 self.document.title = u'My first document' 122 122 self.document.document_id = u'DOC1' 123 self.assertRaises( 124 NotIdValue, setattr, self.document, 'document_id', u'id with spaces') 123 125 self.customer['documents'].addDocument(self.document) 124 126 self.contract = createObject('waeup.SampleContract') 125 127 self.contract.title = u'My first contract' 126 128 self.contract.contract_id = u'CON1' 129 self.assertRaises( 130 NotIdValue, setattr, self.contract, 'contract_id', u'id with spaces') 127 131 self.customer['contracts'].addContract(self.contract) 128 132 -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/interfaces.py
r12098 r12262 19 19 from zope import schema 20 20 from waeup.ikoba.interfaces import ( 21 IIkobaObject, 21 IIkobaObject, validate_id, 22 22 ContextualDictSourceFactoryBase) 23 23 from waeup.ikoba.interfaces import MessageFactory as _ … … 47 47 default = u'NA', 48 48 required = True, 49 constraint=validate_id, 49 50 ) 50 51 -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_browser.py
r12213 r12262 38 38 from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase 39 39 from waeup.ikoba.app import Company 40 from waeup.ikoba.interfaces import IUserAccount, IJobManager, APPROVED 40 from waeup.ikoba.interfaces import ( 41 IUserAccount, IJobManager, APPROVED, NotIdValue) 41 42 from waeup.ikoba.authentication import LocalRoleSetEvent 42 43 from waeup.ikoba.tests.test_async import FunctionalAsyncTestCase … … 91 92 self.product = createObject('waeup.Product') 92 93 self.product.product_id = u'LIC' 94 self.assertRaises( 95 NotIdValue, setattr, self.product, 'product_id', u'id with spaces') 93 96 self.product.title = u'Our License' 94 97 self.app['products'].addProduct(self.product)
Note: See TracChangeset for help on using the changeset viewer.