- Timestamp:
- 7 Feb 2016, 07:57:36 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/university
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/export.py
r13144 r13654 162 162 163 163 fields = ('code', 'faculty_code', 'department_code', 'title', 'study_mode', 164 'degree', 164 165 'start_level', 'end_level', 'application_category', 'ratio', 165 166 'school_fee_1', 'school_fee_2', 'school_fee_3', 'school_fee_4', -
main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_export.py
r10185 r13654 378 378 self.assertEqual( 379 379 result, 380 'code,faculty_code,department_code,title,study_mode,start_level,' 380 'code,faculty_code,department_code,title,study_mode,' 381 'degree,start_level,' 381 382 'end_level,application_category,ratio,school_fee_1,' 382 383 'school_fee_2,school_fee_3,school_fee_4,' … … 384 385 'custom_float_1,custom_float_2,' 385 386 'users_with_local_roles\r\n' 386 'CERT1,F1,D1,Master of Cheese,ct_ft, 100,300,basic,,,,,,,,,,'387 'CERT1,F1,D1,Master of Cheese,ct_ft,,100,300,basic,,,,,,,,,,' 387 388 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 388 389 ) … … 395 396 self.assertEqual( 396 397 result, 397 'code,faculty_code,department_code,title,study_mode,start_level,' 398 'code,faculty_code,department_code,title,study_mode,' 399 'degree,start_level,' 398 400 'end_level,application_category,ratio,school_fee_1,' 399 401 'school_fee_2,school_fee_3,school_fee_4,' … … 401 403 'custom_float_1,custom_float_2,' 402 404 'users_with_local_roles\r\n' 403 'CERT1,F1,D1,Master of Cheese,ct_ft, 100,300,basic,,,,,,,,,,'404 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 405 'CERT2,F1,D1,Master of Cheddar,ct_ft, 400,700,cest,,,,,,,,,,[]\r\n'405 'CERT1,F1,D1,Master of Cheese,ct_ft,,100,300,basic,,,,,,,,,,' 406 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 407 'CERT2,F1,D1,Master of Cheddar,ct_ft,,400,700,cest,,,,,,,,,,[]\r\n' 406 408 ) 407 409 return … … 414 416 self.assertEqual( 415 417 result, 416 'code,faculty_code,department_code,title,study_mode,start_level,' 418 'code,faculty_code,department_code,title,study_mode,' 419 'degree,start_level,' 417 420 'end_level,application_category,ratio,' 418 421 'school_fee_1,school_fee_2,school_fee_3,school_fee_4,' … … 420 423 'custom_float_1,custom_float_2,' 421 424 'users_with_local_roles\r\n' 422 'CERT1,F1,D1,Master of Cheese,ct_ft, 100,300,basic,,,,,,,,,,'423 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 424 'CERT2,F1,D1,Master of Cheddar,ct_ft, 400,700,cest,,,,,,,,,,[]\r\n'425 'CERT3,F1,D2,Cert. of Rubbish,dp_pt, 100,200,no,,,,,,,,,,[]\r\n'425 'CERT1,F1,D1,Master of Cheese,ct_ft,,100,300,basic,,,,,,,,,,' 426 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 427 'CERT2,F1,D1,Master of Cheddar,ct_ft,,400,700,cest,,,,,,,,,,[]\r\n' 428 'CERT3,F1,D2,Cert. of Rubbish,dp_pt,,100,200,no,,,,,,,,,,[]\r\n' 426 429 ) 427 430 return … … 433 436 self.assertEqual( 434 437 result, 435 'code,faculty_code,department_code,title,study_mode,start_level,' 438 'code,faculty_code,department_code,title,study_mode,' 439 'degree,start_level,' 436 440 'end_level,application_category,ratio,' 437 441 'school_fee_1,school_fee_2,school_fee_3,school_fee_4,' … … 439 443 'custom_float_1,custom_float_2,' 440 444 'users_with_local_roles\r\n' 441 'CERT1,F1,D1,Master of Cheese,ct_ft, 100,300,basic,,,,,,,,,,'442 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 443 'CERT2,F1,D1,Master of Cheddar,ct_ft, 400,700,cest,,,,,,,,,,[]\r\n'444 'CERT3,F1,D2,Cert. of Rubbish,dp_pt, 100,200,no,,,,,,,,,,[]\r\n'445 'CERT1,F1,D1,Master of Cheese,ct_ft,,100,300,basic,,,,,,,,,,' 446 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 447 'CERT2,F1,D1,Master of Cheddar,ct_ft,,400,700,cest,,,,,,,,,,[]\r\n' 448 'CERT3,F1,D2,Cert. of Rubbish,dp_pt,,100,200,no,,,,,,,,,,[]\r\n' 445 449 ) 446 450 return
Note: See TracChangeset for help on using the changeset viewer.