From 6de50a235ed21de987488a2890b13f029d1962b4 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 16 Aug 2012 09:55:53 -0400 Subject: made POSIX subtool tests inherit from base POSIX tool tests --- .../Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py') diff --git a/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py b/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py index f1746e34a..9d8130658 100644 --- a/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py +++ b/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestPermissions.py @@ -4,13 +4,8 @@ import lxml.etree from mock import Mock, MagicMock, patch from Bcfg2.Client.Tools.POSIX.Permissions import * from Test__init import get_posix_object +from Testbase import TestPOSIXTool from .....common import * -def get_permissions_object(posix=None): - if posix is None: - posix = get_posix_object() - return POSIXPermissions(posix.logger, posix.setup, posix.config) - -class TestPOSIXPermissions(Bcfg2TestCase): - # nothing to test! - pass +class TestPOSIXPermissions(TestPOSIXTool): + test_obj = POSIXPermissions -- cgit v1.2.3-1-g7c22