def test_smartCompare_t17_t16(self): policy1 = linkdef.FWPolicy('', self.filet17, False) link_cisco.acl_parser(self.filet17, policy1, False) policy2 = linkdef.FWPolicy('', self.filet16, False) link_cisco.acl_parser(self.filet16, policy2, False) smartacl_result = smartACL.smartCompare2(policy1, policy2, verbose=False, only_different=False, outprint=False, ignore_lines='', ignoredeny=False, ignoreshadowed=False, DEBUG=False) self.assertEqual(smartacl_result, self.results_t17_t16, 'Normal Test') smartacl_result = smartACL.smartCompare2(policy1, policy2, verbose=False, only_different=False, outprint=False, ignore_lines='', ignoredeny=False, ignoreshadowed=True, DEBUG=False) self.assertEqual(smartacl_result, self.results_t17_t16, 'Ignoring Shadowed Rules')
def test_smartShadow11(self): policy = linkdef.FWPolicy('', self.file11) link_cisco.acl_parser(self.file11, policy) self.assertEqual(smartACL.smartShadow2(policy), self.results_f11)