Changeset 10044 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 22 Mar 2013, 12:59:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_webservices.py
r10043 r10044 171 171 self.assertEqual(result, None) 172 172 result = server.get_students_by_course('CRS1', '2012') 173 self.assertEqual(result, [['K1000000', '234', 'my adviser' ],])173 self.assertEqual(result, [['K1000000', '234', 'my adviser', 0],]) 174 174 result = server.get_students_by_course('CRS1') 175 self.assertEqual(result, [['K1000000', '234', 'my adviser'],]) 175 self.assertEqual(result, [['K1000000', '234', 'my adviser', 0],]) 176 payment = StudentOnlinePayment() 177 payment.p_id = 'my-id' 178 payment.p_session = 2012 179 payment.amount_auth = 12.12 180 payment.p_state = u'paid' 181 self.student['payments']['my-payment'] = payment 182 result = server.get_students_by_course('CRS1') 183 self.assertEqual(result, [['K1000000', '234', 'my adviser', 12.12],]) 176 184 REQUEST_XML="""\ 177 185 <?xml version="1.0"?> … … 195 203 <value><string>234</string></value> 196 204 <value><string>my adviser</string></value> 205 <value><double>12.12</double></value> 197 206 </data></array></value> 198 207 </data></array></value>
Note: See TracChangeset for help on using the changeset viewer.