summaryrefslogtreecommitdiff
path: root/selftest/tests/test_testlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'selftest/tests/test_testlist.py')
-rw-r--r--selftest/tests/test_testlist.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/selftest/tests/test_testlist.py b/selftest/tests/test_testlist.py
index 4405e86003..cd44d46238 100644
--- a/selftest/tests/test_testlist.py
+++ b/selftest/tests/test_testlist.py
@@ -19,6 +19,8 @@
"""Tests for selftest.testlist."""
+from selftest.tests import TestCase
+
from selftest.testlist import (
RestrictedTestManager,
find_in_list,
@@ -28,10 +30,8 @@ from selftest.testlist import (
from cStringIO import StringIO
-import unittest
-
-class FindInListTests(unittest.TestCase):
+class FindInListTests(TestCase):
def test_empty(self):
self.assertIs(None, find_in_list([], "foo.test"))
@@ -41,7 +41,7 @@ class FindInListTests(unittest.TestCase):
find_in_list([("foo.*bar", "because")], "foo.bla.bar"))
-class ReadTestRegexesTests(unittest.TestCase):
+class ReadTestRegexesTests(TestCase):
def test_comment(self):
f = StringIO("# I am a comment\n # I am also a comment\n")
@@ -57,7 +57,7 @@ class ReadTestRegexesTests(unittest.TestCase):
list(read_test_regexes(f)))
-class ReadTestlistTests(unittest.TestCase):
+class ReadTestlistTests(TestCase):
def test_read_list(self):
inf = StringIO("-- TEST --\nfoo\nbar\nbla\n")
@@ -75,7 +75,7 @@ class ReadTestlistTests(unittest.TestCase):
-class RestrictedTestManagerTests(unittest.TestCase):
+class RestrictedTestManagerTests(TestCase):
def test_unused(self):
mgr = RestrictedTestManager(["foo.bar"])