Ignore:
Timestamp:
28 Nov 2014, 07:29:14 (10 years ago)
Author:
Henrik Bettermann
Message:

Add product exporter with tests.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_batching.py

    r12073 r12077  
    3131from zope.catalog.interfaces import ICatalog
    3232from zope.interface.verify import verifyClass, verifyObject
     33from zope.securitypolicy.interfaces import IPrincipalRoleManager
    3334
    3435from waeup.ikoba.app import Company
     
    8283        self.app['products'][product.product_id] = self.product = product
    8384        self.outfile = os.path.join(self.workdir, 'myoutput.csv')
     85        role_manager = IPrincipalRoleManager(product)
     86        role_manager.assignRoleToPrincipal(u'johnsrole', u'john')
    8487        return
    8588
  • main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_browser.py

    r12073 r12077  
    5555    return None
    5656
    57 class ProductssFullSetup(FunctionalTestCase):
     57class ProductsFullSetup(FunctionalTestCase):
    5858    # A test case that only contains a setup and teardown
    5959    #
     
    6767
    6868    def setUp(self):
    69         super(ProductssFullSetup, self).setUp()
     69        super(ProductsFullSetup, self).setUp()
    7070
    7171        # Setup a sample site for each test
     
    113113
    114114    def tearDown(self):
    115         super(ProductssFullSetup, self).tearDown()
     115        super(ProductsFullSetup, self).tearDown()
    116116        clearSite()
    117117        shutil.rmtree(self.dc_root)
    118118
    119 class ProductsContainerUITests(ProductssFullSetup):
     119class ProductsContainerUITests(ProductsFullSetup):
    120120    # Tests for ProductsContainer class views and pages
    121121
     
    163163
    164164
    165 class ProductsUITests(ProductssFullSetup):
     165class ProductsUITests(ProductsFullSetup):
    166166    # Tests for Products class views and pages
    167167
Note: See TracChangeset for help on using the changeset viewer.