mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-23 06:22:15 +00:00
Fix test matching to use proper constants
This commit is contained in:
parent
17cc87e56b
commit
8137b9392c
@ -51,12 +51,12 @@ class TestMatchList(unittest.TestCase):
|
||||
a = matching.Match()
|
||||
a.dist = 100
|
||||
ml.append(a)
|
||||
self.assertEqual(len(ml), 1)
|
||||
self.assertEqual(len(ml), 2)
|
||||
|
||||
a = matching.Match()
|
||||
a.dist = 200
|
||||
ml.append(a)
|
||||
self.assertEqual(len(ml), 1)
|
||||
self.assertEqual(len(ml), 2)
|
||||
self.assertEqual(len(ml.bastards), 1)
|
||||
|
||||
ml.allow_info_dir_change = False
|
||||
@ -64,7 +64,7 @@ class TestMatchList(unittest.TestCase):
|
||||
a.dist = 0
|
||||
a.info_dir_change = True
|
||||
ml.append(a)
|
||||
self.assertEqual(len(ml), 1)
|
||||
self.assertEqual(len(ml), 3)
|
||||
self.assertEqual(len(ml.bastards), 2)
|
||||
|
||||
def test_sort(self):
|
||||
|
Loading…
Reference in New Issue
Block a user