- Timestamp:
- 13 Nov 2014, 13:21:59 (10 years ago)
- Location:
- main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/browser/tests
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/browser/tests/test_permissions.py
r8920 r11947 38 38 manager_pages = [ 39 39 # The pages that should only be accessible by manager... 40 '/@@manage', '/@@administration', '/faculties/@@search',40 '/@@manage', '/@@administration', 41 41 '/users/@@index', '/users/@@add', '/users/alice/@@manage', 42 42 '/datacenter/@@index', '/datacenter/@@upload', '/datacenter/@@import1', 43 43 '/datacenter/@@import2', '/datacenter/@@import3', '/datacenter/@@import4', 44 44 '/datacenter/@@logs', '/datacenter/@@show', '/datacenter/@@manage', 45 '/faculties/@@index', '/faculties/@@add', '/faculties/@@manage',46 '/faculties/fac1/@@index', '/faculties/fac1/@@manage',47 '/faculties/fac1/@@add',48 '/faculties/fac1/dept1/@@index',49 '/faculties/fac1/dept1/@@manage',50 '/faculties/fac1/dept1/@@addcourse',51 '/faculties/fac1/dept1/@@addcertificate',52 '/faculties/fac1/dept1/courses/crs1/@@index',53 '/faculties/fac1/dept1/courses/crs1/@@manage',54 '/faculties/fac1/dept1/certificates/cert1/@@index',55 '/faculties/fac1/dept1/certificates/cert1/@@manage',56 '/faculties/fac1/dept1/certificates/cert1/@@addcertificatecourse',57 '/faculties/fac1/dept1/certificates/cert1/crs1_100/@@index',58 '/faculties/fac1/dept1/certificates/cert1/crs1_100/@@manage',59 45 ] 60 46 public_pages = [ … … 79 65 app['datacenter'].setStoragePath(self.dc_root) 80 66 app['users'].addUser('alice', 'alice') 81 fac1 = createObject('waeup.Faculty')82 fac1.code = "fac1"83 app['faculties'].addFaculty(fac1)84 dept = createObject('waeup.Department')85 dept.code = 'dept1'86 fac1.addDepartment(dept)87 course = createObject('waeup.Course')88 course.code = 'crs1'89 dept.courses.addCourse(course)90 cert = createObject('waeup.Certificate')91 cert.code = 'cert1'92 dept.certificates.addCertificate(cert)93 cert.addCertCourse(course)94 67 95 68 self.browser = Browser()
Note: See TracChangeset for help on using the changeset viewer.