mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-11 03:51:26 +00:00
PolicyDifferenceTest, PolicyDifferenceTestNoDiff: fix setup
This commit is contained in:
parent
2610382c36
commit
1db73d396d
@ -27,9 +27,10 @@ class PolicyDifferenceTest(ValidateRule, unittest.TestCase):
|
|||||||
|
|
||||||
"""Policy difference tests."""
|
"""Policy difference tests."""
|
||||||
|
|
||||||
def setUp(self):
|
@classmethod
|
||||||
self.diff = PolicyDifference(SELinuxPolicy("tests/diff_left.conf"),
|
def setUpClass(cls):
|
||||||
SELinuxPolicy("tests/diff_right.conf"))
|
cls.diff = PolicyDifference(SELinuxPolicy("tests/diff_left.conf"),
|
||||||
|
SELinuxPolicy("tests/diff_right.conf"))
|
||||||
|
|
||||||
#
|
#
|
||||||
# Types
|
# Types
|
||||||
@ -1287,9 +1288,10 @@ class PolicyDifferenceTestNoDiff(unittest.TestCase):
|
|||||||
|
|
||||||
"""Policy difference test with no policy differences."""
|
"""Policy difference test with no policy differences."""
|
||||||
|
|
||||||
def setUp(self):
|
@classmethod
|
||||||
self.diff = PolicyDifference(SELinuxPolicy("tests/diff_left.conf"),
|
def setUpClass(cls):
|
||||||
SELinuxPolicy("tests/diff_left.conf"))
|
cls.diff = PolicyDifference(SELinuxPolicy("tests/diff_left.conf"),
|
||||||
|
SELinuxPolicy("tests/diff_left.conf"))
|
||||||
|
|
||||||
def test_added_types(self):
|
def test_added_types(self):
|
||||||
"""NoDiff: no added types"""
|
"""NoDiff: no added types"""
|
||||||
|
Loading…
Reference in New Issue
Block a user