diff --git a/oslo_privsep/tests/test_daemon.py b/oslo_privsep/tests/test_daemon.py index 47e81a1..d7068c3 100644 --- a/oslo_privsep/tests/test_daemon.py +++ b/oslo_privsep/tests/test_daemon.py @@ -63,7 +63,7 @@ class LogTest(testctx.TestContextTestCase): @testtools.skipIf(platform.system() != 'Linux', 'works only on Linux platform.') -class TestDaemon(base.BaseTestCase): +class DaemonTest(base.BaseTestCase): @mock.patch('os.setuid') @mock.patch('os.setgid') @@ -98,7 +98,7 @@ class TestDaemon(base.BaseTestCase): @testtools.skipIf(platform.system() != 'Linux', 'works only on Linux platform.') -class TestWithContext(testctx.TestContextTestCase): +class WithContextTest(testctx.TestContextTestCase): def test_unexported(self): self.assertRaisesRegexp( diff --git a/oslo_privsep/tests/test_priv_context.py b/oslo_privsep/tests/test_priv_context.py index ebf1110..eaddb9f 100644 --- a/oslo_privsep/tests/test_priv_context.py +++ b/oslo_privsep/tests/test_priv_context.py @@ -59,7 +59,7 @@ def fail(custom=False): @testtools.skipIf(platform.system() != 'Linux', 'works only on Linux platform.') -class TestPrivContext(testctx.TestContextTestCase): +class PrivContextTest(testctx.TestContextTestCase): @mock.patch.object(priv_context, 'sys') def test_init_windows(self, mock_sys): @@ -126,7 +126,7 @@ class TestPrivContext(testctx.TestContextTestCase): @testtools.skipIf(platform.system() != 'Linux', 'works only on Linux platform.') -class TestSeparation(testctx.TestContextTestCase): +class SeparationTest(testctx.TestContextTestCase): def test_getpid(self): # Verify that priv_getpid() was executed in another process. priv_pid = priv_getpid() @@ -177,7 +177,7 @@ class RootwrapTest(testctx.TestContextTestCase): @testtools.skipIf(platform.system() != 'Linux', 'works only on Linux platform.') -class TestSerialization(testctx.TestContextTestCase): +class SerializationTest(testctx.TestContextTestCase): def test_basic_functionality(self): self.assertEqual(43, add1(42))