-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJpKRgACgkQrlYvE4MpobNHngCfXtaJt4AUFHHBhPIiBUbBysjj sU0AniNwhVo3me4JXjFl2B1jnY/hAcm/ =PTO+ -----END PGP SIGNATURE-----
>From e96143fb9341961caf27b2cab9a9e19b2dbe4803 Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Wed, 9 Oct 2013 17:02:44 -0400 Subject: [PATCH 26/74] 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 2282eca..ca3f871 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): -- 1.8.3.1