comparison rhodecode/tests/models/test_permissions.py @ 3829:5067d6e826a5 beta

created basic TestClass for tests that does basic pylons stack init
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 09 May 2013 00:04:43 +0200
parents a3b1016855f8
children a5888ca796b5
comparison
equal deleted inserted replaced
3828:f5270697be3e 3829:5067d6e826a5
1 import os
2 import unittest
3 from rhodecode.tests import * 1 from rhodecode.tests import *
4 from rhodecode.tests.fixture import Fixture 2 from rhodecode.tests.fixture import Fixture
5 from rhodecode.model.repos_group import ReposGroupModel 3 from rhodecode.model.repos_group import ReposGroupModel
6 from rhodecode.model.repo import RepoModel 4 from rhodecode.model.repo import RepoModel
7 from rhodecode.model.db import RepoGroup, User, UserGroupRepoGroupToPerm,\ 5 from rhodecode.model.db import RepoGroup, User, UserGroupRepoGroupToPerm,\
15 13
16 14
17 fixture = Fixture() 15 fixture = Fixture()
18 16
19 17
20 class TestPermissions(unittest.TestCase): 18 class TestPermissions(BaseTestCase):
21 def __init__(self, methodName='runTest'): 19 def __init__(self, methodName='runTest'):
22 super(TestPermissions, self).__init__(methodName=methodName) 20 super(TestPermissions, self).__init__(methodName=methodName)
23 21
24 def setUp(self): 22 def setUp(self):
25 self.u1 = UserModel().create_or_update( 23 self.u1 = UserModel().create_or_update(