Minor tests refactoring due to use testtools:
- added missed setUp() and tearDown() to call these functions in
base test case.
- removed some superfluous tearDown() calls.
- moved test_crud_inherited_role_grants_failed_if_disabled() method
to separate class.
Fixes for python 2.6 enviroment:
- replaced `with self.assertRaises(Exception): foo()` to `self.assertRaises(Exception, foo)
- added to safe_repr(), assertDictEqual() and assertRaisesRegexp() methods
to TestCase() class in keystone/test.py
Reviewed: https:/ /review. openstack. org/39064 github. com/openstack/ keystone/ commit/ 221851c8ac78362 418dc3e5c3f5659 f78c012c35
Committed: http://
Submitter: Jenkins
Branch: master
commit 221851c8ac78362 418dc3e5c3f5659 f78c012c35
Author: Victor Sergeyev <email address hidden>
Date: Mon Jul 29 09:42:50 2013 +0300
Use testtools as base test class.
Minor tests refactoring due to use testtools: inherited_ role_grants_ failed_ if_disabled( ) method
- added missed setUp() and tearDown() to call these functions in
base test case.
- removed some superfluous tearDown() calls.
- moved test_crud_
to separate class.
Fixes for python 2.6 enviroment: es(Exception) : foo()` to
`self.assertRai ses(Exception, foo) exp() methods
- replaced `with self.assertRais
- added to safe_repr(), assertDictEqual() and assertRaisesReg
to TestCase() class in keystone/test.py
Fixes bug 1179009
Change-Id: Iea67ad10d02db8 2fc8ed79b1096dd b5233925bfd