Mercurial > kallithea
annotate rhodecode/tests/functional/test_repos_groups.py @ 3640:4f80df0d45c8 beta
unified flash msg tests
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 30 Mar 2013 16:17:56 +0100 |
parents | 5f1850e4712a |
children |
rev | line source |
---|---|
1171 | 1 from rhodecode.tests import * |
2 | |
3222
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
3 |
1171 | 4 class TestReposGroupsController(TestController): |
5 | |
6 def test_index(self): | |
3222
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
7 self.log_user() |
1171 | 8 response = self.app.get(url('repos_groups')) |
3410
5f1850e4712a
"Users groups" is grammatically incorrect English - rename to "user groups"
Mads Kiilerich <madski@unity3d.com>
parents:
3222
diff
changeset
|
9 response.mustcontain('There are no repository groups yet') |
1171 | 10 |
3222
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
11 # def test_index_as_xml(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
12 # response = self.app.get(url('formatted_repos_groups', format='xml')) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
13 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
14 # def test_create(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
15 # response = self.app.post(url('repos_groups')) |
1171 | 16 |
17 def test_new(self): | |
3222
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
18 self.log_user() |
1171 | 19 response = self.app.get(url('new_repos_group')) |
20 | |
3222
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
21 def test_new_by_regular_user(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
22 self.log_user(TEST_USER_REGULAR_LOGIN, TEST_USER_REGULAR_PASS) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
23 response = self.app.get(url('new_repos_group'), status=403) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
24 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
25 # def test_new_as_xml(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
26 # response = self.app.get(url('formatted_new_repos_group', format='xml')) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
27 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
28 # def test_update(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
29 # response = self.app.put(url('repos_group', group_name=1)) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
30 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
31 # def test_update_browser_fakeout(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
32 # response = self.app.post(url('repos_group', group_name=1), params=dict(_method='put')) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
33 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
34 # def test_delete(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
35 # self.log_user() |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
36 # response = self.app.delete(url('repos_group', group_name=1)) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
37 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
38 # def test_delete_browser_fakeout(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
39 # response = self.app.post(url('repos_group', group_name=1), params=dict(_method='delete')) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
40 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
41 # def test_show(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
42 # response = self.app.get(url('repos_group', group_name=1)) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
43 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
44 # def test_show_as_xml(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
45 # response = self.app.get(url('formatted_repos_group', group_name=1, format='xml')) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
46 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
47 # def test_edit(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
48 # response = self.app.get(url('edit_repos_group', group_name=1)) |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
49 # |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
50 # def test_edit_as_xml(self): |
b4daef4cc26d
Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents:
1171
diff
changeset
|
51 # response = self.app.get(url('formatted_edit_repos_group', group_name=1, format='xml')) |