Changeset 10954 for main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
- Timestamp:
- 21 Jan 2014, 15:17:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r10937 r10954 108 108 109 109 self.browser.open('http://localhost/app/feerequest') 110 self.assertEqual(self.browser.contents, ' -1')110 self.assertEqual(self.browser.contents, 'Missing PAYEE_ID') 111 111 self.browser.open('http://localhost/app/feerequest?NONSENSE=nonsense') 112 self.assertEqual(self.browser.contents, '-1') 112 self.assertEqual(self.browser.contents, 'Missing PAYEE_ID') 113 self.browser.open( 114 'http://localhost/app/feerequest?PAYEE_ID=nonsense&PAYMENT_TYPE=SCHOOL-FEE') 115 self.assertEqual(self.browser.contents, 'Invalid PAYEE_ID') 113 116 self.browser.open( 114 117 'http://localhost/app/feerequest?PAYEE_ID=%s&PAYMENT_TYPE=NONSENSE' 115 118 % self.p_id) 116 self.assertEqual(self.browser.contents, ' -3')119 self.assertEqual(self.browser.contents, 'Invalid PAYMENT_TYPE') 117 120 self.browser.open( 118 121 'http://localhost/app/feerequest?PAYEE_ID=%s' 119 122 % self.p_id) 120 self.assertEqual(self.browser.contents, ' -3')123 self.assertEqual(self.browser.contents, 'Invalid PAYMENT_TYPE') 121 124 self.browser.open( 122 125 'http://localhost/app/feerequest?PAYEE_ID=%s&PAYMENT_TYPE=ACCEPTANCE-FEE' 123 126 % self.p_id) 124 self.assertEqual(self.browser.contents, ' -6')127 self.assertEqual(self.browser.contents, 'Wrong PAYMENT_TYPE') 125 128 self.browser.open( 126 129 'http://localhost/app/feerequest?PAYEE_ID=%s&PAYMENT_TYPE=APPLICATION-FEE' 127 130 % self.p_id) 128 self.assertEqual(self.browser.contents, ' -7')131 self.assertEqual(self.browser.contents, 'Wrong PAYMENT_TYPE') 129 132 130 133
Note: See TracChangeset for help on using the changeset viewer.