Changeset 12359
- Timestamp:
- 1 Jan 2015, 16:27:42 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/products/tests/test_browser.py
r12354 r12359 40 40 product = SkeletonProduct() 41 41 product.product_id = u'LIC' 42 product.valid_from = datetime.date(2015, 12, 4) 42 43 self.app['products'][product.product_id] = self.product = product 43 44 self.outfile = os.path.join(self.workdir, 'myoutput.csv') … … 52 53 result = open(self.outfile, 'rb').read() 53 54 self.assertEqual(result, 54 'contract_category,contract_title,options,product_id,title,users_with_local_roles\r\n' 55 'license,,[],LIC,Unnamed,[]\r\n') 55 'contract_category,contract_title,options,' 56 'product_id,title,valid_from,valid_to,users_with_local_roles\r\n' 57 'license,,[],LIC,Unnamed,2015-12-04#,,[]\r\n') 56 58 # We can import the same file. 57 59 processor = SkeletonProductProcessor() … … 59 61 self.outfile, 60 62 ['contract_category','contract_title', 'options,', 'product_id', 61 'title',' users_with_local_roles'],63 'title','valid_from','valid_to','users_with_local_roles'], 62 64 mode='create') 63 65 num, num_fail, finished_path, failed_path = result … … 70 72 self.outfile, 71 73 ['contract_category','contract_title', 'options,', 'product_id', 72 'title',' users_with_local_roles'],74 'title','valid_from','valid_to','users_with_local_roles'], 73 75 mode='create') 74 76 num, num_fail, finished_path, failed_path = result … … 79 81 self.outfile, 80 82 ['contract_category','contract_title', 'options,', 'product_id', 81 'title',' users_with_local_roles'],83 'title','valid_from','valid_to','users_with_local_roles'], 82 84 mode='update') 83 85 num, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.