Mercurial > kallithea
comparison rhodecode/tests/functional/test_permissions.py @ 547:1e757ac98988
renamed project to rhodecode
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Oct 2010 03:18:16 +0200 |
parents | pylons_app/tests/functional/test_permissions.py@d982ed8e32d8 |
children |
comparison
equal
deleted
inserted
replaced
546:7c2f5e4d7bbf | 547:1e757ac98988 |
---|---|
1 from rhodecode.tests import * | |
2 | |
3 class TestPermissionsController(TestController): | |
4 | |
5 def test_index(self): | |
6 response = self.app.get(url('permissions')) | |
7 # Test response... | |
8 | |
9 def test_index_as_xml(self): | |
10 response = self.app.get(url('formatted_permissions', format='xml')) | |
11 | |
12 def test_create(self): | |
13 response = self.app.post(url('permissions')) | |
14 | |
15 def test_new(self): | |
16 response = self.app.get(url('new_permission')) | |
17 | |
18 def test_new_as_xml(self): | |
19 response = self.app.get(url('formatted_new_permission', format='xml')) | |
20 | |
21 def test_update(self): | |
22 response = self.app.put(url('permission', id=1)) | |
23 | |
24 def test_update_browser_fakeout(self): | |
25 response = self.app.post(url('permission', id=1), params=dict(_method='put')) | |
26 | |
27 def test_delete(self): | |
28 response = self.app.delete(url('permission', id=1)) | |
29 | |
30 def test_delete_browser_fakeout(self): | |
31 response = self.app.post(url('permission', id=1), params=dict(_method='delete')) | |
32 | |
33 def test_show(self): | |
34 response = self.app.get(url('permission', id=1)) | |
35 | |
36 def test_show_as_xml(self): | |
37 response = self.app.get(url('formatted_permission', id=1, format='xml')) | |
38 | |
39 def test_edit(self): | |
40 response = self.app.get(url('edit_permission', id=1)) | |
41 | |
42 def test_edit_as_xml(self): | |
43 response = self.app.get(url('formatted_edit_permission', id=1, format='xml')) |