Changeset 12077 for main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests
- Timestamp:
- 28 Nov 2014, 07:29:14 (10 years ago)
- 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 31 31 from zope.catalog.interfaces import ICatalog 32 32 from zope.interface.verify import verifyClass, verifyObject 33 from zope.securitypolicy.interfaces import IPrincipalRoleManager 33 34 34 35 from waeup.ikoba.app import Company … … 82 83 self.app['products'][product.product_id] = self.product = product 83 84 self.outfile = os.path.join(self.workdir, 'myoutput.csv') 85 role_manager = IPrincipalRoleManager(product) 86 role_manager.assignRoleToPrincipal(u'johnsrole', u'john') 84 87 return 85 88 -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_browser.py
r12073 r12077 55 55 return None 56 56 57 class Products sFullSetup(FunctionalTestCase):57 class ProductsFullSetup(FunctionalTestCase): 58 58 # A test case that only contains a setup and teardown 59 59 # … … 67 67 68 68 def setUp(self): 69 super(Products sFullSetup, self).setUp()69 super(ProductsFullSetup, self).setUp() 70 70 71 71 # Setup a sample site for each test … … 113 113 114 114 def tearDown(self): 115 super(Products sFullSetup, self).tearDown()115 super(ProductsFullSetup, self).tearDown() 116 116 clearSite() 117 117 shutil.rmtree(self.dc_root) 118 118 119 class ProductsContainerUITests(Products sFullSetup):119 class ProductsContainerUITests(ProductsFullSetup): 120 120 # Tests for ProductsContainer class views and pages 121 121 … … 163 163 164 164 165 class ProductsUITests(Products sFullSetup):165 class ProductsUITests(ProductsFullSetup): 166 166 # Tests for Products class views and pages 167 167
Note: See TracChangeset for help on using the changeset viewer.