from qs_cfn_lint_rules.ProhibitedResourceProperties import * from ... import BaseRuleTestCase, DynamicRuleTesting class DynamicProhibitedResourceProperties( DynamicRuleTesting, BaseRuleTestCase ): imported_module = "qs_cfn_lint_rules.ProhibitedResourceProperties" module_attr = "property_name" def test_file_negative(self): for cn, to in self.testobjs.items(): with self.subTest( f"Testing {cn} file negative", file=f"{to.parent.id}.json", rule=to.parent.id, ): to.test_file_negative(1)