Changeset 12053 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Timestamp:
- 25 Nov 2014, 08:19:54 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12051 r12053 812 812 self.browser.getLink("Documents").click() 813 813 self.browser.getLink("Add document").click() 814 self.browser.getControl(name="doctype").value = [' sample']814 self.browser.getControl(name="doctype").value = ['CustomerPDFDocument'] 815 815 self.browser.getControl("Create document").click() 816 self.assertTrue(' SampleDocument created.' in self.browser.contents)816 self.assertTrue('PDF Document created.' in self.browser.contents) 817 817 document = self.customer['documents']['d102'] 818 818 … … 853 853 self.assertTrue( 854 854 'INFO - zope.mgr - customers.browser.DocumentAddFormPage ' 855 '- K1000000 - added: SampleDocument %s'855 '- K1000000 - added: PDF Document %s' 856 856 % document.document_id in logcontent) 857 857 … … 871 871 self.browser.getLink("Documents").click() 872 872 self.browser.getLink("Add document").click() 873 self.browser.getControl(name="doctype").value = [' sample']873 self.browser.getControl(name="doctype").value = ['CustomerDocument'] 874 874 self.browser.getControl("Create document").click() 875 875 self.assertTrue('Sample Document created.' in self.browser.contents) -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_document.py
r12004 r12053 61 61 self.assertEqual(container[id], document) 62 62 self.assertRaises(TypeError, container.addDocument, object()) 63 self.assertEqual(document.classname, 'CustomerDocument') 63 64 return 64 65 -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12017 r12053 138 138 self.assertEqual( 139 139 result, 140 ' document_id,history,state,title,customer_id\r\n'141 ' d101,[],,,\r\n'140 'classname,document_id,history,last_transition_date,state,title,customer_id\r\n' 141 'CustomerDocument,d101,[],,,,\r\n' 142 142 ) 143 143 return … … 152 152 result = open(self.outfile, 'rb').read() 153 153 self.assertTrue( 154 ' document_id,history,state,title,customer_id\r\n'154 'classname,document_id,history,last_transition_date,state,title,customer_id\r\n' 155 155 in result 156 156 ) 157 self.assertTrue( 158 'Document created by system\'],created,My Document,A111111\r\n' 159 in result 157 self.assertMatches( 158 '...CustomerDocument,d101,[u\'2014-11-25 06:57:24 UTC - ' 159 'Document created by system\'],2014-11-25 06:57:24.990308#,' 160 'created,My Document,A111111...', 161 result 160 162 ) 161 163 return … … 169 171 result = open(self.outfile, 'rb').read() 170 172 self.assertTrue( 171 ' document_id,history,state,title,customer_id\r\n'173 'classname,document_id,history,last_transition_date,state,title,customer_id\r\n' 172 174 in result) 173 self.assertTrue( 174 ' Document created by system\'],created,My Document,A111111\r\n' 175 in result) 175 self.assertMatches( 176 '...CustomerDocument,d101,[u\'2014-11-25 06:57:24 UTC - ' 177 'Document created by system\'],2014-11-25 06:57:24.990308#,' 178 'created,My Document,A111111...', 179 result 180 ) 176 181 return 177 182 … … 184 189 result = open(self.outfile, 'rb').read() 185 190 self.assertTrue( 186 ' document_id,history,state,title,customer_id\r\n'191 'classname,document_id,history,last_transition_date,state,title,customer_id\r\n' 187 192 in result) 188 self.assertTrue( 189 ' Document created by system\'],created,My Document,A111111\r\n' 190 in result) 193 self.assertMatches( 194 '...CustomerDocument,d101,[u\'2014-11-25 06:57:24 UTC - ' 195 'Document created by system\'],2014-11-25 06:57:24.990308#,' 196 'created,My Document,A111111...', 197 result 198 ) 191 199 return
Note: See TracChangeset for help on using the changeset viewer.