Changeset 12359


Ignore:
Timestamp:
1 Jan 2015, 16:27:42 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust tests to changes made in base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/products/tests/test_browser.py

    r12354 r12359  
    4040        product = SkeletonProduct()
    4141        product.product_id = u'LIC'
     42        product.valid_from = datetime.date(2015, 12, 4)
    4243        self.app['products'][product.product_id] = self.product = product
    4344        self.outfile = os.path.join(self.workdir, 'myoutput.csv')
     
    5253        result = open(self.outfile, 'rb').read()
    5354        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')
    5658        # We can import the same file.
    5759        processor = SkeletonProductProcessor()
     
    5961            self.outfile,
    6062            ['contract_category','contract_title', 'options,', 'product_id',
    61             'title','users_with_local_roles'],
     63            'title','valid_from','valid_to','users_with_local_roles'],
    6264            mode='create')
    6365        num, num_fail, finished_path, failed_path = result
     
    7072            self.outfile,
    7173            ['contract_category','contract_title', 'options,', 'product_id',
    72             'title','users_with_local_roles'],
     74            'title','valid_from','valid_to','users_with_local_roles'],
    7375            mode='create')
    7476        num, num_fail, finished_path, failed_path = result
     
    7981            self.outfile,
    8082            ['contract_category','contract_title', 'options,', 'product_id',
    81             'title','users_with_local_roles'],
     83            'title','valid_from','valid_to','users_with_local_roles'],
    8284            mode='update')
    8385        num, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.