diff options
| author | Monty Taylor <mordred@inaugust.com> | 2013-01-22 19:54:57 -0500 |
|---|---|---|
| committer | Monty Taylor <mordred@inaugust.com> | 2013-01-24 16:26:43 +1100 |
| commit | 827547a0b3da411441bf691ddbc94867001a3311 (patch) | |
| tree | 17fb6b54fa0e00f8fa41d447f865e1ceb25b004a /tests/unit/test_authutils.py | |
| parent | 1bc3ecf25d1b86dcb178d5f59b178bde94f5f667 (diff) | |
Use testtools as test base class.
On the path to testr migration, we need to replace the unittest base classes
with testtools.
Replace tearDown with addCleanup, addCleanup is more resilient than tearDown.
The fixtures library has excellent support for managing and cleaning
tempfiles. Use it.
Replace skip_ with testtools.skipTest
Part of blueprint grizzly-testtools.
Change-Id: I45e11bbb1ff9b31f3278d3b016737dcb7850cd98
Diffstat (limited to 'tests/unit/test_authutils.py')
| -rw-r--r-- | tests/unit/test_authutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_authutils.py b/tests/unit/test_authutils.py index 1e1d26f..64e241a 100644 --- a/tests/unit/test_authutils.py +++ b/tests/unit/test_authutils.py @@ -15,12 +15,12 @@ # License for the specific language governing permissions and limitations # under the License. -import unittest +import testtools from openstack.common import authutils -class AuthUtilsTest(unittest.TestCase): +class AuthUtilsTest(testtools.TestCase): def test_auth_str_equal(self): self.assertTrue(authutils.auth_str_equal('abc123', 'abc123')) |
