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 /HACKING.rst | |
parent | 1bc3ecf25d1b86dcb178d5f59b178bde94f5f667 (diff) | |
download | oslo-827547a0b3da411441bf691ddbc94867001a3311.tar.gz oslo-827547a0b3da411441bf691ddbc94867001a3311.tar.xz oslo-827547a0b3da411441bf691ddbc94867001a3311.zip |
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 'HACKING.rst')
-rw-r--r-- | HACKING.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/HACKING.rst b/HACKING.rst index 39f94df..7dda11a 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -65,9 +65,9 @@ Example:: import random import StringIO import time - import unittest import eventlet + import testtools import webob.exc import nova.api.ec2 |