Ignore:
Timestamp:
10 Feb 2015, 15:39:09 (10 years ago)
Author:
Henrik Bettermann
Message:

Only valid (active) products are selectable in UI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12580 r12585  
    113113        self.product.title = u'Our Sample Product'
    114114        self.product.contract_category = self._contract_category
    115         self.product.valid_from = date(2015, 12, 4)
     115        self.product.valid_from = date(2014, 12, 4)
    116116        self.product.tc_dict = {'en': u'Hello world'}
    117117        prodoption = ProductOption()
     
    12651265        self.assertEqual(
    12661266            self.browser.url, self.contracts_path + '/%s/selectproduct' % conid)
    1267         # SAM is in the correct contract_category ...
     1267        # SAM is in the correct contract_category
    12681268        self.assertTrue('<option value="SAM">' in self.browser.contents)
    1269         # ... but NOTSAM not.
    1270         self.assertFalse('<option value="LIC">' in self.browser.contents)
    12711269        # So far last_product_id is None.
    12721270        self.assertTrue(self.customer['contracts'][conid].last_product_id is None)
     
    13311329        product.title = u'Our License Product'
    13321330        product.contract_category = u'license'
     1331        product.valid_from = date(2014, 12, 4)
    13331332        self.app['products'].addProduct(product)
    13341333        # Customers can manage contracts under certain conditions
     
    13571356        # SAM is in the correct contract_category ...
    13581357        self.assertTrue('<option value="SAM">' in self.browser.contents)
    1359         # ... but NOTSAM not.
     1358        # ... but LIC not.
    13601359        self.assertFalse('<option value="LIC">' in self.browser.contents)
    13611360        # So far last_product_id is None.
Note: See TracChangeset for help on using the changeset viewer.