From ebcdb14a4568fcb559d6833f2f77e33b9499d2aa Mon Sep 17 00:00:00 2001 From: Jeremiah Leary Date: Wed, 30 Aug 2017 20:42:47 -0500 Subject: [PATCH] Entity rule 23 compromise: Will not check prefix or suffix on lines withe multiple ports. Another rule will catch the multiple ports and when they are split onto their own lines, then rule 23 will apply. --- modules/tests/rule_entity/rule_entity_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tests/rule_entity/rule_entity_tests.py b/modules/tests/rule_entity/rule_entity_tests.py index df168da6..a1f803ea 100644 --- a/modules/tests/rule_entity/rule_entity_tests.py +++ b/modules/tests/rule_entity/rule_entity_tests.py @@ -330,7 +330,7 @@ class testRuleEntityMethods(unittest.TestCase): oRule = rule_entity.rule_023() oRule.port_direction = 'Suffix' - dExpected = [9,10,11,12,13,14,26,27,28,29,30,31,40,41,42,43,44,45,57,58,59,60,61,62,71,72,73,74,75,76,87,88,89,119,120,121] + dExpected = [9,10,11,12,13,14,26,27,28,29,30,31,40,41,42,43,44,45,57,58,59,60,61,62,71,72,73,74,75,76,87,88,89,120] oRule.analyze(lLines) self.assertEqual(oRule.violations, dExpected)