- Timestamp:
- 5 Dec 2016, 09:14:32 (8 years ago)
- Location:
- main/ikobacustom.aaue/trunk/src/ikobacustom/aaue
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/tests/test_browser.py
r12685 r14310 27 27 from zope.interface.verify import verifyObject, verifyClass 28 28 from waeup.ikoba.products.tests.test_batching import ProductImportExportSetup 29 from ikobacustom. skeleton.products.product import SkeletonProduct30 from ikobacustom. skeleton.products.export import SkeletonProductExporter31 from ikobacustom. skeleton.products.batching import SkeletonProductProcessor32 from ikobacustom. skeleton.testing import FunctionalLayer29 from ikobacustom.aaue.products.product import AAUEProduct 30 from ikobacustom.aaue.products.export import AAUEProductExporter 31 from ikobacustom.aaue.products.batching import AAUEProductProcessor 32 from ikobacustom.aaue.testing import FunctionalLayer 33 33 34 34 … … 38 38 39 39 def setup_for_export(self): 40 product = SkeletonProduct()40 product = AAUEProduct() 41 41 product.product_id = u'SAM' 42 42 product.contract_category = u'sample' … … 50 50 # set values we can expect in export file 51 51 self.setup_for_export() 52 exporter = SkeletonProductExporter()52 exporter = AAUEProductExporter() 53 53 exporter.export_all(self.app, self.outfile) 54 54 result = open(self.outfile, 'rb').read() … … 59 59 'sample,,,[],SAM,,Unnamed,2015-12-04#,,[]\r\n') 60 60 # We can import the same file. 61 processor = SkeletonProductProcessor()61 processor = AAUEProductProcessor() 62 62 result = processor.doImport( 63 63 self.outfile, … … 81 81 self.assertEqual(num_fail,0) 82 82 # We can import the same file in update mode. 83 processor = SkeletonProductProcessor()83 processor = AAUEProductProcessor() 84 84 result = processor.doImport( 85 85 self.outfile, -
main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/tests/test_product.py
r12177 r14310 17 17 ## 18 18 """ 19 Tests for skeletonproducts.19 Tests for aaue products. 20 20 """ 21 21 from zope.interface.verify import verifyClass, verifyObject … … 24 24 from waeup.ikoba.products.container import ProductsContainer 25 25 26 from ikobacustom. skeleton.testing import (FunctionalLayer, FunctionalTestCase)27 from ikobacustom. skeleton.products.product import SkeletonProduct28 from ikobacustom. skeleton.products.interfaces import ISkeletonProduct26 from ikobacustom.aaue.testing import (FunctionalLayer, FunctionalTestCase) 27 from ikobacustom.aaue.products.product import AAUEProduct 28 from ikobacustom.aaue.products.interfaces import IAAUEProduct 29 29 30 class SkeletonProductTestCase(FunctionalTestCase):30 class AAUEProductTestCase(FunctionalTestCase): 31 31 32 32 layer = FunctionalLayer … … 36 36 self.assertTrue( 37 37 verifyClass( 38 I SkeletonProduct, SkeletonProduct)38 IAAUEProduct, AAUEProduct) 39 39 ) 40 40 self.assertTrue( 41 41 verifyObject( 42 I SkeletonProduct, SkeletonProduct())42 IAAUEProduct, AAUEProduct()) 43 43 ) 44 44 return 45 45 46 def test_add SkeletonProduct(self):46 def test_addAAUEProduct(self): 47 47 container = ProductsContainer() 48 48 product = createObject(u'waeup.Product')
Note: See TracChangeset for help on using the changeset viewer.