Changeset 12330 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Timestamp:
- 27 Dec 2014, 10:05:03 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_batching.py
r12283 r12330 25 25 import datetime 26 26 import grok 27 from decimal import Decimal 27 28 from time import time 28 29 from zope.event import notify … … 40 41 from waeup.ikoba.customers.customer import Customer 41 42 from waeup.ikoba.customers.documents import CustomerSampleDocument 43 from waeup.ikoba.products.productoptions import ProductOption 42 44 from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase 43 45 … … 99 101 self.product.title = u'Our Samle Product' 100 102 self.product.contract_category = u'sample' 103 option = ProductOption() 104 option.title = u'Base Fee' 105 option.fee = Decimal('800.6') 106 option.currency = 'usd' 107 self.product.options = [option,] 101 108 self.app['products'].addProduct(self.product) 102 109 return … … 142 149 contract.product_object = self.product 143 150 contract.document_object = self.document 151 contract.product_options = self.product.options 144 152 customer['contracts'].addContract(contract) 145 153 self.contract = contract -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12289 r12330 257 257 'class_name,contract_category,contract_id,document_object,' 258 258 'history,last_product_id,' 259 'product_object, state,title,user_id\r\n'260 261 'SampleContract,sample,CON1,,[],,, ,,\r\n'259 'product_object,product_options,state,title,user_id\r\n' 260 261 'SampleContract,sample,CON1,,[],,,[],,,\r\n' 262 262 ) 263 263 return … … 273 273 'class_name,contract_category,contract_id,document_object,' 274 274 'history,last_product_id,' 275 'product_object, state,title,user_id\r\n'275 'product_object,product_options,state,title,user_id\r\n' 276 276 277 277 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 278 278 'Contract created by system\'],,' 279 'SAM,created,My Contract,A111111\r\n', 279 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'usd\')]",' 280 'created,My Contract,A111111\r\n', 280 281 result 281 282 ) … … 292 293 'class_name,contract_category,contract_id,document_object,' 293 294 'history,last_product_id,' 294 'product_object, state,title,user_id\r\n'295 'product_object,product_options,state,title,user_id\r\n' 295 296 296 297 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 297 298 'Contract created by system\'],,' 298 'SAM,created,My Contract,A111111\r\n', 299 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'usd\')]",' 300 'created,My Contract,A111111\r\n', 299 301 result 300 302 ) … … 311 313 'class_name,contract_category,contract_id,document_object,' 312 314 'history,last_product_id,' 313 'product_object, state,title,user_id\r\n'315 'product_object,product_options,state,title,user_id\r\n' 314 316 315 317 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 316 318 'Contract created by system\'],,' 317 'SAM,created,My Contract,A111111\r\n', 318 result 319 ) 320 return 321 319 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'usd\')]",' 320 'created,My Contract,A111111\r\n', 321 result 322 ) 323 return 324
Note: See TracChangeset for help on using the changeset viewer.