mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-01 22:58:12 +00:00
PEP8 fixes for unit test code.
Except max line length of 100.
This commit is contained in:
parent
15a8b2de2c
commit
bdb47c7241
@ -209,8 +209,8 @@ class InfoFlowAnalysisTest(unittest.TestCase):
|
|||||||
|
|
||||||
# don't test nodes, as disconnected nodes
|
# don't test nodes, as disconnected nodes
|
||||||
# are not removed by subgraph generation
|
# are not removed by subgraph generation
|
||||||
#nodes = set(a.subG.nodes_iter())
|
# nodes = set(a.subG.nodes_iter())
|
||||||
#self.assertSetEqual(set([disconnected1, disconnected2, node1,
|
# self.assertSetEqual(set([disconnected1, disconnected2, node1,
|
||||||
# node2, node3, node4, node5,
|
# node2, node3, node4, node5,
|
||||||
# node6, node7, node8, node9]), nodes)
|
# node6, node7, node8, node9]), nodes)
|
||||||
|
|
||||||
@ -247,8 +247,8 @@ class InfoFlowAnalysisTest(unittest.TestCase):
|
|||||||
|
|
||||||
# don't test nodes, as disconnected nodes
|
# don't test nodes, as disconnected nodes
|
||||||
# are not removed by subgraph generation
|
# are not removed by subgraph generation
|
||||||
#nodes = set(a.subG.nodes_iter())
|
# nodes = set(a.subG.nodes_iter())
|
||||||
#self.assertSetEqual(set([disconnected1, disconnected2, node1,
|
# self.assertSetEqual(set([disconnected1, disconnected2, node1,
|
||||||
# node2, node4, node5,
|
# node2, node4, node5,
|
||||||
# node6, node7, node8, node9]), nodes)
|
# node6, node7, node8, node9]), nodes)
|
||||||
|
|
||||||
|
@ -84,7 +84,8 @@ class ObjClassQueryTest(unittest.TestCase):
|
|||||||
def test_022_perm_indirect_equal(self):
|
def test_022_perm_indirect_equal(self):
|
||||||
"""Class query with indirect, equal permission name patch."""
|
"""Class query with indirect, equal permission name patch."""
|
||||||
q = ObjClassQuery(self.p, perms=set(
|
q = ObjClassQuery(self.p, perms=set(
|
||||||
["low_w", "med_w", "hi_w", "low_r", "med_r", "hi_r", "unmapped"]), perms_indirect=True, perms_equal=True)
|
["low_w", "med_w", "hi_w", "low_r", "med_r", "hi_r", "unmapped"]),
|
||||||
|
perms_indirect=True, perms_equal=True)
|
||||||
|
|
||||||
classes = sorted(str(c) for c in q.results())
|
classes = sorted(str(c) for c in q.results())
|
||||||
self.assertListEqual(["infoflow7"], classes)
|
self.assertListEqual(["infoflow7"], classes)
|
||||||
|
Loading…
Reference in New Issue
Block a user