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:
parent
828eca47a5
commit
ebcdb14a45
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue