mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-01 00:06:19 +00:00
Fix PEP8 issues.
This commit is contained in:
parent
db9066b978
commit
ea2485059a
@ -185,49 +185,56 @@ class IbendportconQueryTest(unittest.TestCase):
|
||||
|
||||
def test_054_range_proper_subset2(self):
|
||||
"""Ibendportcon query with context range proper subset match (equal)"""
|
||||
q = IbendportconQuery(self.p, range_="s4:c1 - s4:c1.c3", range_subset=True, range_proper=True)
|
||||
q = IbendportconQuery(self.p, range_="s4:c1 - s4:c1.c3", range_subset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibendportcons = sorted(n.name for n in q.results())
|
||||
self.assertListEqual([], ibendportcons)
|
||||
|
||||
def test_054_range_proper_subset3(self):
|
||||
"""Ibendportcon query with context range proper subset match (equal low only)"""
|
||||
q = IbendportconQuery(self.p, range_="s4:c1 - s4:c1.c2", range_subset=True, range_proper=True)
|
||||
q = IbendportconQuery(self.p, range_="s4:c1 - s4:c1.c2", range_subset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibendportcons = sorted(n.name for n in q.results())
|
||||
self.assertListEqual(["test54"], ibendportcons)
|
||||
|
||||
def test_054_range_proper_subset4(self):
|
||||
"""Ibendportcon query with context range proper subset match (equal high only)"""
|
||||
q = IbendportconQuery(self.p, range_="s4:c1,c2 - s4:c1.c3", range_subset=True, range_proper=True)
|
||||
q = IbendportconQuery(self.p, range_="s4:c1,c2 - s4:c1.c3", range_subset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibendportcons = sorted(n.name for n in q.results())
|
||||
self.assertListEqual(["test54"], ibendportcons)
|
||||
|
||||
def test_055_range_proper_superset1(self):
|
||||
"""Ibendportcon query with context range proper superset match"""
|
||||
q = IbendportconQuery(self.p, range_="s5 - s5:c0.c4", range_superset=True, range_proper=True)
|
||||
q = IbendportconQuery(self.p, range_="s5 - s5:c0.c4", range_superset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibendportcons = sorted(n.name for n in q.results())
|
||||
self.assertListEqual(["test55"], ibendportcons)
|
||||
|
||||
def test_055_range_proper_superset2(self):
|
||||
"""Ibendportcon query with context range proper superset match (equal)"""
|
||||
q = IbendportconQuery(self.p, range_="s5:c1 - s5:c1.c3", range_superset=True, range_proper=True)
|
||||
q = IbendportconQuery(self.p, range_="s5:c1 - s5:c1.c3", range_superset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibendportcons = sorted(n.name for n in q.results())
|
||||
self.assertListEqual([], ibendportcons)
|
||||
|
||||
def test_055_range_proper_superset3(self):
|
||||
"""Ibendportcon query with context range proper superset match (equal low)"""
|
||||
q = IbendportconQuery(self.p, range_="s5:c1 - s5:c1.c4", range_superset=True, range_proper=True)
|
||||
q = IbendportconQuery(self.p, range_="s5:c1 - s5:c1.c4", range_superset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibendportcons = sorted(n.name for n in q.results())
|
||||
self.assertListEqual(["test55"], ibendportcons)
|
||||
|
||||
def test_055_range_proper_superset4(self):
|
||||
"""Ibendportcon query with context range proper superset match (equal high)"""
|
||||
q = IbendportconQuery(self.p, range_="s5 - s5:c1.c3", range_superset=True, range_proper=True)
|
||||
q = IbendportconQuery(self.p, range_="s5 - s5:c1.c3", range_superset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibendportcons = sorted(n.name for n in q.results())
|
||||
self.assertListEqual(["test55"], ibendportcons)
|
||||
|
@ -192,7 +192,8 @@ class IbpkeyconQueryTest(unittest.TestCase):
|
||||
|
||||
def test_054_range_proper_subset4(self):
|
||||
"""ibpkeycon query with context range proper subset match (equal high only)"""
|
||||
q = IbpkeyconQuery(self.p, range_="s4:c1,c2 - s4:c1.c3", range_subset=True, range_proper=True)
|
||||
q = IbpkeyconQuery(self.p, range_="s4:c1,c2 - s4:c1.c3", range_subset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibpkeycons = sorted(n.pkeys for n in q.results())
|
||||
self.assertListEqual([(54, 54)], ibpkeycons)
|
||||
@ -206,21 +207,24 @@ class IbpkeyconQueryTest(unittest.TestCase):
|
||||
|
||||
def test_055_range_proper_superset2(self):
|
||||
"""ibpkeycon query with context range proper superset match (equal)"""
|
||||
q = IbpkeyconQuery(self.p, range_="s5:c1 - s5:c1.c3", range_superset=True, range_proper=True)
|
||||
q = IbpkeyconQuery(self.p, range_="s5:c1 - s5:c1.c3", range_superset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibpkeycons = sorted(n.pkeys for n in q.results())
|
||||
self.assertListEqual([], ibpkeycons)
|
||||
|
||||
def test_055_range_proper_superset3(self):
|
||||
"""ibpkeycon query with context range proper superset match (equal low)"""
|
||||
q = IbpkeyconQuery(self.p, range_="s5:c1 - s5:c1.c4", range_superset=True, range_proper=True)
|
||||
q = IbpkeyconQuery(self.p, range_="s5:c1 - s5:c1.c4", range_superset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibpkeycons = sorted(n.pkeys for n in q.results())
|
||||
self.assertListEqual([(55, 55)], ibpkeycons)
|
||||
|
||||
def test_055_range_proper_superset4(self):
|
||||
"""ibpkeycon query with context range proper superset match (equal high)"""
|
||||
q = IbpkeyconQuery(self.p, range_="s5 - s5:c1.c3", range_superset=True, range_proper=True)
|
||||
q = IbpkeyconQuery(self.p, range_="s5 - s5:c1.c3", range_superset=True,
|
||||
range_proper=True)
|
||||
|
||||
ibpkeycons = sorted(n.pkeys for n in q.results())
|
||||
self.assertListEqual([(55, 55)], ibpkeycons)
|
||||
|
Loading…
Reference in New Issue
Block a user