From 8137b9392c8953e425282e22d5e28fd3511f4eae Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Wed, 9 Oct 2013 17:02:44 -0400 Subject: [PATCH] Fix test matching to use proper constants --- sepolgen/tests/test_matching.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sepolgen/tests/test_matching.py b/sepolgen/tests/test_matching.py index 2282eca2..ca3f8714 100644 --- a/sepolgen/tests/test_matching.py +++ b/sepolgen/tests/test_matching.py @@ -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):