MCPcopy
hub / github.com/apache/caldera / test_larger_subnet

Method test_larger_subnet

tests/utility/test_ip_rule.py:54–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 assert await self.rs.is_fact_allowed(self.fact4)
53
54 async def test_larger_subnet(self):
55 assert (not await self.rs._is_ip_rule_match(self.rule, self.fact5))
56 assert await self.rs.is_fact_allowed(self.fact5)
57
58 async def test_same_subnet(self):
59 assert await self.rs._is_ip_rule_match(self.rule, self.fact6)

Callers

nothing calls this directly

Calls 2

_is_ip_rule_matchMethod · 0.80
is_fact_allowedMethod · 0.80

Tested by

no test coverage detected