Show More
@@ -150,12 +150,18 b' class TestAdminUsersGroupsController(Tes' | |||
|
150 | 150 | |
|
151 | 151 | def test_edit(self): |
|
152 | 152 | self.log_user() |
|
153 | response = self.app.get(url('edit_users_group', user_group_id=1)) | |
|
153 | ug = fixture.create_user_group(TEST_USER_GROUP, skip_if_exists=True) | |
|
154 | response = self.app.get( | |
|
155 | url('edit_users_group', user_group_id=ug.users_group_id)) | |
|
156 | fixture.destroy_user_group(TEST_USER_GROUP) | |
|
154 | 157 | |
|
155 | 158 | def test_edit_user_group_members(self): |
|
156 | 159 | self.log_user() |
|
157 | response = self.app.get(url('edit_user_group_members', user_group_id=1)) | |
|
160 | ug = fixture.create_user_group(TEST_USER_GROUP, skip_if_exists=True) | |
|
161 | response = self.app.get( | |
|
162 | url('edit_user_group_members', user_group_id=ug.users_group_id)) | |
|
158 | 163 | response.mustcontain('No members yet') |
|
164 | fixture.destroy_user_group(TEST_USER_GROUP) | |
|
159 | 165 | |
|
160 | 166 | def test_usergroup_escape(self): |
|
161 | 167 | user = User.get_by_username('test_admin') |
General Comments 0
You need to be logged in to leave comments.
Login now