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.
This commit is contained in:
Jeremiah Leary 2017-08-30 20:42:47 -05:00
parent 828eca47a5
commit ebcdb14a45
1 changed files with 1 additions and 1 deletions

View File

@ -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)