- Timestamp:
- 25 Nov 2014, 13:15:27 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_document.py
r12056 r12057 27 27 from waeup.ikoba.interfaces import IObjectHistory 28 28 from waeup.ikoba.customers.documents import ( 29 CustomerDocumentsContainer, Customer Document)29 CustomerDocumentsContainer, CustomerSampleDocument) 30 30 from waeup.ikoba.testing import (FunctionalLayer, FunctionalTestCase) 31 31 … … 46 46 self.assertTrue( 47 47 verifyClass( 48 ICustomerDocument, Customer Document)48 ICustomerDocument, CustomerSampleDocument) 49 49 ) 50 50 self.assertTrue( 51 51 verifyObject( 52 ICustomerDocument, Customer Document())52 ICustomerDocument, CustomerSampleDocument()) 53 53 ) 54 54 return … … 56 56 def test_addDocument(self): 57 57 container = CustomerDocumentsContainer() 58 document = createObject(u'waeup.Customer Document')58 document = createObject(u'waeup.CustomerSampleDocument') 59 59 id = document.document_id 60 60 container.addDocument(document) 61 61 self.assertEqual(container[id], document) 62 62 self.assertRaises(TypeError, container.addDocument, object()) 63 self.assertEqual(document.class_name, 'Customer Document')63 self.assertEqual(document.class_name, 'CustomerSampleDocument') 64 64 return 65 65 66 66 def test_document_workflow(self): 67 document = createObject(u'waeup.Customer Document')67 document = createObject(u'waeup.CustomerSampleDocument') 68 68 IWorkflowInfo(document).fireTransition('create') 69 69 self.assertEqual(IWorkflowState(document).getState(), 'created') … … 82 82 83 83 def test_document_history(self): 84 doc = createObject(u'waeup.Customer Document')84 doc = createObject(u'waeup.CustomerSampleDocument') 85 85 IWorkflowInfo(doc).fireTransition('create') 86 86 messages = ' '.join(doc.history.messages)
Note: See TracChangeset for help on using the changeset viewer.