Mercurial > kallithea
comparison rhodecode/tests/functional/test_admin_users_groups.py @ 1382:c310e1e1e757 beta
Added CheckSessionFlash into init.
Added repo_groups_test controller.
Renamed users_groups test controller
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 14 Jun 2011 09:38:23 +0200 |
parents | rhodecode/tests/functional/test_users_groups.py@83d35d716a02 |
children | 6dee43453f58 |
comparison
equal
deleted
inserted
replaced
1381:a1ab3e9c7e82 | 1382:c310e1e1e757 |
---|---|
1 from rhodecode.tests import * | |
2 | |
3 TEST_USERS_GROUP = 'admins_test' | |
4 | |
5 class TestAdminUsersGroupsController(TestController): | |
6 | |
7 def test_index(self): | |
8 response = self.app.get(url('users_groups')) | |
9 # Test response... | |
10 | |
11 def test_index_as_xml(self): | |
12 response = self.app.get(url('formatted_users_groups', format='xml')) | |
13 | |
14 def test_create(self): | |
15 users_group_name = TEST_USERS_GROUP | |
16 response = self.app.post(url('users_groups'), | |
17 {'users_group_name':users_group_name, | |
18 'active':True}) | |
19 response.follow() | |
20 | |
21 self.checkSessionFlash(response, | |
22 'created users group %s' % TEST_USERS_GROUP) | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 def test_new(self): | |
29 response = self.app.get(url('new_users_group')) | |
30 | |
31 def test_new_as_xml(self): | |
32 response = self.app.get(url('formatted_new_users_group', format='xml')) | |
33 | |
34 def test_update(self): | |
35 response = self.app.put(url('users_group', id=1)) | |
36 | |
37 def test_update_browser_fakeout(self): | |
38 response = self.app.post(url('users_group', id=1), params=dict(_method='put')) | |
39 | |
40 def test_delete(self): | |
41 response = self.app.delete(url('users_group', id=1)) | |
42 | |
43 def test_delete_browser_fakeout(self): | |
44 response = self.app.post(url('users_group', id=1), params=dict(_method='delete')) | |
45 | |
46 def test_show(self): | |
47 response = self.app.get(url('users_group', id=1)) | |
48 | |
49 def test_show_as_xml(self): | |
50 response = self.app.get(url('formatted_users_group', id=1, format='xml')) | |
51 | |
52 def test_edit(self): | |
53 response = self.app.get(url('edit_users_group', id=1)) | |
54 | |
55 def test_edit_as_xml(self): | |
56 response = self.app.get(url('formatted_edit_users_group', id=1, format='xml')) | |
57 | |
58 def test_assign_members(self): | |
59 pass | |
60 | |
61 def test_add_create_permission(self): | |
62 pass | |
63 | |
64 def test_revoke_members(self): | |
65 pass | |
66 | |
67 | |
68 | |
69 |