Changeset 7189 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 25 Nov 2011, 07:07:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.