Changeset 7189 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 25 Nov 2011, 07:07:23 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursepage.pt
r7171 r7189 32 32 </td> 33 33 </tr> 34 <tr >34 <tr tal:condition="view/context/certificate"> 35 35 <td> 36 36 <label> … … 45 45 </td> 46 46 </tr> 47 <tr >47 <tr tal:condition="view/context/certificate"> 48 48 <td> 49 49 <label> -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r7188 r7189 356 356 self.browser.contents) 357 357 return 358 359 def test_manage_access_wo_certificate(self): 360 # Managers can access studycourse even if student 361 # doesn't have a certificate 362 student = Student() 363 student.fullname = u'Lazy Student' 364 self.app['students'].addStudent(student) 365 student_id = student.student_id 366 student_path = self.container_path + '/' + student_id 367 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 368 self.browser.open(student_path + '/studycourse') 369 self.assertEqual(self.browser.headers['Status'], '200 Ok') 370 self.assertEqual(self.browser.url, student_path + '/studycourse') 371 self.assertMatches('...<div class="widget">Nothing</div>...', 372 self.browser.contents) 358 373 359 374 def test_manage_upload_file(self):
Note: See TracChangeset for help on using the changeset viewer.