Ignore:
Timestamp:
19 Mar 2015, 11:44:54 (10 years ago)
Author:
Henrik Bettermann
Message:

Revert changes from revision 12791.

File:
1 edited

Legend:

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

    r12791 r12794  
    6363        customer.sex = u'f'
    6464        customer.email = u'aa@aa.aa'
    65         customer.res_address = u'My address'
    6665        customer.date_of_birth = datetime.date(1981, 2, 4)
    6766        IWorkflowState(customer).setState('started')
     
    9695        self.assertEqual(result,
    9796            'customer_id,date_of_birth,email,firstname,lastname,middlename,phone,'
    98             'reg_number,res_address,sex,suspended,suspended_comment,password,state,history\r\n'
    99             'K1000000,1981-02-04#,aa@aa.aa,Beate,Mueller,,,123,My address,f,0,,,started,[]\r\n')
     97            'reg_number,sex,suspended,suspended_comment,password,state,history\r\n'
     98            'K1000000,1981-02-04#,aa@aa.aa,Beate,Mueller,,,123,f,0,,,started,[]\r\n')
    10099        # We can reimport the file ...
    101100        processor = PCNCustomerProcessor()
     
    103102            self.outfile,
    104103            ['customer_id','date_of_birth','email','firstname','lastname','middlename','phone',
    105             'reg_number','res_address','sex','suspended','suspended_comment','password','state'],
     104            'reg_number','sex','suspended','suspended_comment','password','state'],
    106105            mode='create')
    107106        num, num_fail, finished_path, failed_path = result
     
    112111            self.outfile,
    113112            ['customer_id','date_of_birth','email','firstname','lastname','middlename','phone',
    114             'reg_number','res_address','sex','suspended','suspended_comment','password','state'],
     113            'reg_number','sex','suspended','suspended_comment','password','state'],
    115114            mode='create')
    116115        num_succ, num_fail, finished_path, failed_path = result
     
    121120            self.outfile,
    122121            ['customer_id','date_of_birth','xx_email','firstname','lastname','middlename','phone',
    123             'xx_reg_number','res_address','sex','suspended','suspended_comment','password','state'],
     122            'xx_reg_number','sex','suspended','suspended_comment','password','state'],
    124123            mode='update')
    125124        num_succ, num_fail, finished_path, failed_path = result
     
    226225            'categories_practice,class_name,comment,contract_category,contract_id,'
    227226            'fee_based,history,last_product_id,lga,product_object,'
    228             'product_options,state,state_of_origin,superintendent,'
     227            'product_options,res_address,state,state_of_origin,superintendent,'
    229228            'tc_dict,title,user_id,valid_from,valid_to,work_address,work_email,work_phone,'
    230229            'year_qualification\r\n'
    231230            '[],RONContract,,ron,%s,0,'
    232231            '[u\'2015-01-18 16:40:01 WAT - License created by system\'],,,,'
    233             '[],created,,,{\'en\': u\'Hello World\'},,K1000000,,,,,,\r\n'
     232            '[],,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,,,\r\n'
    234233            % self.contract1.contract_id)
    235234        # We can reimport the file if we change the header
     
    287286            'last_product_id,official_in_state,other_directors,'
    288287            'pharmacists_directors,premises_address,premises_certificate,'
    289             'product_object,product_options,recommended,'
     288            'product_object,product_options,recommended,res_address,'
    290289            'state,superintendent,tc_dict,title,user_id,valid_from,valid_to,'
    291290            'work_address\r\n'
     
    293292            '[],ROPContract,rop,%s,,0,'
    294293            '[u\'2015-01-20 18:51:03 WAT - License created by system\']'
    295             ',,,,,,,,,,[],,created,,{\'en\': u\'Hello World\'},,K1000000,,,\r\n'
     294            ',,,,,,,,,,[],,,created,,{\'en\': u\'Hello World\'},,K1000000,,,\r\n'
    296295            % self.contract2.contract_id)
    297296        # We can reimport the file if we change the header
     
    358357        self.browser.getLink("Edit").click()
    359358        self.browser.getControl(name="form.email").value = 'new_email@aa.ng'
    360         self.browser.getControl(name="form.res_address").value = 'My address'
    361359        self.browser.getControl("Save", index=0).click()
    362360        self.assertMatches('...Form has been saved...',
Note: See TracChangeset for help on using the changeset viewer.