def test_unhappy_path(self): self.assertFalse( finder(self.snippet, 'ingress', { 'cidr_blocks.0': '0.0.0.0/0', 'from_port': '0', 'self': 'true' }))
def finder(parent, starts_with, matching_object): return finder(parent, starts_with, matching_object)
def test_happy_path(self): self.assertTrue( finder(self.snippet, 'ingress', { 'cidr_blocks.0': '0.0.0.0/0', 'from_port': '3389' }))