- Timestamp:
- 3 Feb 2015, 17:42:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py
r12538 r12558 229 229 'year_qualification\r\n' 230 230 '[],RONContract,,ron,%s,' 231 '[u\'2015-01-18 16:40:01 WAT - Contractcreated by system\'],,,,'231 '[u\'2015-01-18 16:40:01 WAT - License created by system\'],,,,' 232 232 '[],,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,\r\n' 233 233 % self.contract1.contract_id) … … 240 240 'state,tc_dict,title,user_id\r\n' 241 241 'RONContract,license,%s,,' 242 '[u\'2014-12-21 22:26:00 WAT - Contractcreated by system\']'242 '[u\'2014-12-21 22:26:00 WAT - License created by system\']' 243 243 ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n' 244 244 % self.contract1.contract_id) … … 290 290 291 291 '[],ROPContract,rop,%s,,' 292 '[u\'2015-01-20 18:51:03 WAT - Contractcreated by system\']'292 '[u\'2015-01-20 18:51:03 WAT - License created by system\']' 293 293 ',,,,,,,,,,[],,,created,,{\'en\': u\'Hello World\'},,K1000000,\r\n' 294 294 % self.contract2.contract_id) … … 301 301 'state,tc_dict,title,user_id\r\n' 302 302 'ROPContract,rop,%s,,' 303 '[u\'2014-12-21 22:26:00 WAT - Contractcreated by system\']'303 '[u\'2014-12-21 22:26:00 WAT - License created by system\']' 304 304 ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n' 305 305 % self.contract2.contract_id) … … 398 398 # Customer can view history 399 399 self.browser.getLink("History").click() 400 self.assertMatches('... Customercreated by system...',400 self.assertMatches('...Registration record created by system...', 401 401 self.browser.contents) 402 402 … … 479 479 self.contract.tc_dict = {'en': u'<strong>Hello world</strong>'} 480 480 self.browser.open(self.customer_path + '/contracts/CON1') 481 self.browser.getLink("Download contractslip").click()481 self.browser.getLink("Download license slip").click() 482 482 self.assertEqual(self.browser.headers['Status'], '200 Ok') 483 483 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
Note: See TracChangeset for help on using the changeset viewer.