summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_iniparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_iniparser.py')
-rw-r--r--tests/unit/test_iniparser.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/unit/test_iniparser.py b/tests/unit/test_iniparser.py
index 9e119e7..6742b19 100644
--- a/tests/unit/test_iniparser.py
+++ b/tests/unit/test_iniparser.py
@@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-import unittest
+import testtools
from openstack.common import iniparser
@@ -38,8 +38,9 @@ class TestParser(iniparser.BaseParser):
self.comment_called = True
-class BaseParserTestCase(unittest.TestCase):
+class BaseParserTestCase(testtools.TestCase):
def setUp(self):
+ super(BaseParserTestCase, self).setUp()
self.parser = iniparser.BaseParser()
def _assertParseError(self, *lines):
@@ -61,8 +62,9 @@ class BaseParserTestCase(unittest.TestCase):
self._assertParseError("[]")
-class ParserTestCase(unittest.TestCase):
+class ParserTestCase(testtools.TestCase):
def setUp(self):
+ super(ParserTestCase, self).setUp()
self.parser = TestParser()
def test_blank_line(self):
@@ -120,7 +122,7 @@ class ParserTestCase(unittest.TestCase):
self.assertEquals(self.parser.values, {'': {'foo': [' bar ']}})
-class ExceptionTestCase(unittest.TestCase):
+class ExceptionTestCase(testtools.TestCase):
def test_parseerror(self):
exc = iniparser.ParseError('test', 42, 'example')
self.assertEquals(str(exc), "at line 42, test: 'example'")