Changeset 12390
- Timestamp:
- 3 Jan 2015, 21:42:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py
r12384 r12390 50 50 layer = FunctionalLayer 51 51 52 def setup_customizable_params(self): 53 self._contract_category = u'license' 54 return 55 52 56 def setup_for_export(self): 53 57 customer = createObject(u'waeup.Customer') … … 213 217 'history,last_product_id,product_object,product_options,' 214 218 'state,tc_dict,title,user_id\r\n' 215 'PCNContract, sample,%s,,'219 'PCNContract,license,%s,,' 216 220 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 217 221 ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n' … … 223 227 'history,last_product_id,product_object,product_options,' 224 228 'state,tc_dict,title,user_id\r\n' 225 'PCNContract, sample,%s,,'229 'PCNContract,license,%s,,' 226 230 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 227 231 ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n' … … 262 266 263 267 layer = FunctionalLayer 268 269 def setup_customizable_params(self): 270 self._contract_category = u'license' 271 self._document_factory = 'waeup.PCNCustomerPDFDocument' 272 self._contract_factory = 'waeup.PCNContract' 273 return 264 274 265 275 def test_manage_upload_pdf_file(self): … … 282 292 name='upload_pdfscanmanageupload').click() 283 293 self.assertTrue( 284 'pdf file extensionexpected' in self.browser.contents)294 'pdf file format expected' in self.browser.contents) 285 295 ctrl = self.browser.getControl(name='pdfscanmanageupload') 286 296 file_ctrl = ctrl.mech_control … … 309 319 layer = FunctionalLayer 310 320 321 def setup_customizable_params(self): 322 self._contract_category = u'license' 323 self._document_factory = 'waeup.PCNCustomerPDFDocument' 324 self._contract_factory = 'waeup.PCNContract' 325 return 326 311 327 def test_view_slips(self): 312 328 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
Note: See TracChangeset for help on using the changeset viewer.