Changeset 14511 for main/waeup.kofa/trunk/src/waeup/kofa/university/tests
- Timestamp:
- 7 Feb 2017, 08:33:05 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_export.py
r13654 r14511 67 67 self.assertEqual( 68 68 result, 69 'code,title,title_prefix,users_with_local_roles\r\n' 70 'F1,Faculty of Cheese,faculty,[]\r\n' 69 'code,title,title_prefix,users_with_local_roles,' 70 'officer_1,officer_2\r\n' 71 'F1,Faculty of Cheese,faculty,[],,\r\n' 71 72 ) 72 73 return … … 79 80 self.assertEqual( 80 81 result, 81 'code,title,title_prefix,users_with_local_roles\r\n' 82 'F1,Faculty of Cheese,faculty,[]\r\n' 82 'code,title,title_prefix,users_with_local_roles,' 83 'officer_1,officer_2\r\n' 84 'F1,Faculty of Cheese,faculty,[],,\r\n' 83 85 ) 84 86 return … … 97 99 self.assertEqual( 98 100 result, 99 'code,title,title_prefix,users_with_local_roles\r\n' 100 'F1,Faculty of Cheese,faculty,[]\r\n' 101 'F2,Centre of Onion,centre,[]\r\n' 101 'code,title,title_prefix,users_with_local_roles,' 102 'officer_1,officer_2\r\n' 103 'F1,Faculty of Cheese,faculty,[],,\r\n' 104 'F2,Centre of Onion,centre,[],,\r\n' 102 105 ) 103 106 return … … 115 118 self.assertEqual( 116 119 result, 117 'code,title,title_prefix,users_with_local_roles\r\n' 118 'F1,Faculty of Cheese,faculty,[]\r\n' 119 'F2,Centre of Onion,centre,[]\r\n' 120 'code,title,title_prefix,users_with_local_roles,' 121 'officer_1,officer_2\r\n' 122 'F1,Faculty of Cheese,faculty,[],,\r\n' 123 'F2,Centre of Onion,centre,[],,\r\n' 120 124 ) 121 125 return … … 136 140 container.addFaculty(self.fac1) 137 141 container.addFaculty(self.fac2) 138 self.dept1 = Department('Department of Cheddar', 'department', 'D1') 142 self.dept1 = Department( 143 'Department of Cheddar', 'department', 'D1', 'HoCheese') 139 144 self.dept2 = Department('Institue of Gouda', 'institute', 'D2') 140 145 self.dept3 = Department('Department of Rings', 'department', 'D3') … … 170 175 self.assertEqual( 171 176 result, 172 'code,faculty_code,title,title_prefix,users_with_local_roles\r\n' 177 'code,faculty_code,title,title_prefix,users_with_local_roles,' 178 'officer_1,officer_2,officer_3,officer_4\r\n' 173 179 'D1,F1,Department of Cheddar,department,' 174 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 180 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]",' 181 'HoCheese,,,\r\n' 175 182 ) 176 183 return … … 182 189 self.assertEqual( 183 190 result, 184 'code,faculty_code,title,title_prefix,users_with_local_roles\r\n' 191 'code,faculty_code,title,title_prefix,users_with_local_roles,' 192 'officer_1,officer_2,officer_3,officer_4\r\n' 185 193 'D1,F1,Department of Cheddar,department,' 186 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 187 'D2,F1,Institue of Gouda,institute,[]\r\n' 194 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]",' 195 'HoCheese,,,\r\n' 196 'D2,F1,Institue of Gouda,institute,[],,,,\r\n' 188 197 ) 189 198 return … … 196 205 self.assertEqual( 197 206 result, 198 'code,faculty_code,title,title_prefix,users_with_local_roles\r\n' 207 'code,faculty_code,title,title_prefix,users_with_local_roles,' 208 'officer_1,officer_2,officer_3,officer_4\r\n' 199 209 'D1,F1,Department of Cheddar,department,' 200 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 201 'D2,F1,Institue of Gouda,institute,[]\r\n' 202 'D3,F2,Department of Rings,department,[]\r\n' 210 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]",' 211 'HoCheese,,,\r\n' 212 'D2,F1,Institue of Gouda,institute,[],,,,\r\n' 213 'D3,F2,Department of Rings,department,[],,,,\r\n' 203 214 ) 204 215 return … … 210 221 self.assertEqual( 211 222 result, 212 'code,faculty_code,title,title_prefix,users_with_local_roles\r\n' 223 'code,faculty_code,title,title_prefix,users_with_local_roles,' 224 'officer_1,officer_2,officer_3,officer_4\r\n' 213 225 'D1,F1,Department of Cheddar,department,' 214 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 215 'D2,F1,Institue of Gouda,institute,[]\r\n' 216 'D3,F2,Department of Rings,department,[]\r\n' 226 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]",' 227 'HoCheese,,,\r\n' 228 'D2,F1,Institue of Gouda,institute,[],,,,\r\n' 229 'D3,F2,Department of Rings,department,[],,,,\r\n' 217 230 ) 218 231 return
Note: See TracChangeset for help on using the changeset viewer.