Ignore:
Timestamp:
19 Oct 2016, 09:48:38 (8 years ago)
Author:
Henrik Bettermann
Message:

Contracts must not be added if there are no active products for this category.

File:
1 edited

Legend:

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

    r14208 r14215  
    13501350        self.browser.getControl("Add contract").click()
    13511351        self.browser.getControl(name="contype").value = ['SampleContract']
     1352        # No active product
     1353        self.product.valid_to = date(2014, 12, 4)
     1354        self.browser.getControl("Add contract").click()
     1355        self.assertTrue('No active products in this category.'
     1356            in self.browser.contents)
     1357        self.product.valid_to = date(2050, 12, 4)
     1358        self.browser.getControl("Add contract").click()
     1359        self.browser.getControl(name="contype").value = ['SampleContract']
    13521360        self.browser.getControl("Add contract").click()
    13531361        self.assertTrue('Sample Contract added.' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.