Changeset 12558


Ignore:
Timestamp:
3 Feb 2015, 17:42:58 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py

    r12538 r12558  
    229229            'year_qualification\r\n'
    230230            '[],RONContract,,ron,%s,'
    231             '[u\'2015-01-18 16:40:01 WAT - Contract created by system\'],,,,'
     231            '[u\'2015-01-18 16:40:01 WAT - License created by system\'],,,,'
    232232            '[],,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,\r\n'
    233233            % self.contract1.contract_id)
     
    240240            'state,tc_dict,title,user_id\r\n'
    241241            'RONContract,license,%s,,'
    242             '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
     242            '[u\'2014-12-21 22:26:00 WAT - License created by system\']'
    243243            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
    244244            % self.contract1.contract_id)
     
    290290
    291291            '[],ROPContract,rop,%s,,'
    292             '[u\'2015-01-20 18:51:03 WAT - Contract created by system\']'
     292            '[u\'2015-01-20 18:51:03 WAT - License created by system\']'
    293293            ',,,,,,,,,,[],,,created,,{\'en\': u\'Hello World\'},,K1000000,\r\n'
    294294            % self.contract2.contract_id)
     
    301301            'state,tc_dict,title,user_id\r\n'
    302302            'ROPContract,rop,%s,,'
    303             '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
     303            '[u\'2014-12-21 22:26:00 WAT - License created by system\']'
    304304            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
    305305            % self.contract2.contract_id)
     
    398398        # Customer can view history
    399399        self.browser.getLink("History").click()
    400         self.assertMatches('...Customer created by system...',
     400        self.assertMatches('...Registration record created by system...',
    401401            self.browser.contents)
    402402
     
    479479        self.contract.tc_dict = {'en': u'<strong>Hello world</strong>'}
    480480        self.browser.open(self.customer_path + '/contracts/CON1')
    481         self.browser.getLink("Download contract slip").click()
     481        self.browser.getLink("Download license slip").click()
    482482        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    483483        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
Note: See TracChangeset for help on using the changeset viewer.