Changeset 5694
- Timestamp:
- 11/17/08 11:10:44 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/turbogears/identity/tests/test_identity.py
r5276 r5694 171 171 config.update(test_config['global']) 172 172 self.root = IdentityRoot 173 testutil.TGTest.setUp(self)173 super(TestIdentity, self).setUp() 174 174 self.init_model() 175 175 176 176 def tearDown(self): 177 testutil.TGTest.tearDown(self)177 super(TestIdentity, self).tearDown() 178 178 config.update(self._original_config) 179 179 … … 369 369 370 370 def test_logout(self): 371 """Test that logout works and session i sgets invalid afterwards."""371 """Test that logout works and session id gets invalid afterwards.""" 372 372 response = self.app.get('/in_peon_group?' 373 373 'user_name=samIam&password=secret&login=Login') … … 378 378 379 379 def test_require_group(self): 380 """Test that a anonymous user""" 380 """Test that a anonymous user can not access resource protected by 381 require(in_group(...))""" 381 382 response = self.app.get('/in_peon_group', status=401) 382 383 assert 'identity_failed_answer' in response, response … … 507 508 self._identity_on = config.get('identity.on', False) 508 509 config.update({'identity.on': False}) 509 s tartup.startTurboGears()510 testutil.DBTest.setUp(self)510 super(TestTGUser, self).setUp() 511 startup.startTurboGears() 511 512 512 513 def tearDown(self): 513 testutil.DBTest.tearDown(self)514 514 startup.stopTurboGears() 515 super(TestTGUser, self).tearDown() 515 516 config.update({'identity.on': self._identity_on}) 516 517