TestIsValidCIDR Class — requests Architecture
Architecture documentation for the TestIsValidCIDR class in test_utils.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 4bf93a25_191c_4ac6_f8bc_c803938a2db5["TestIsValidCIDR"] 5828793e_be5b_8952_37f1_338fd4634a1a["test_utils.py"] 4bf93a25_191c_4ac6_f8bc_c803938a2db5 -->|defined in| 5828793e_be5b_8952_37f1_338fd4634a1a 306f2ea1_d5e0_53f4_3116_009ba9334a2f["test_valid()"] 4bf93a25_191c_4ac6_f8bc_c803938a2db5 -->|method| 306f2ea1_d5e0_53f4_3116_009ba9334a2f b8032452_b103_3514_bef6_4aa2b0c52fe5["test_invalid()"] 4bf93a25_191c_4ac6_f8bc_c803938a2db5 -->|method| b8032452_b103_3514_bef6_4aa2b0c52fe5
Relationship Graph
Source Code
tests/test_utils.py lines 284–299
class TestIsValidCIDR:
def test_valid(self):
assert is_valid_cidr("192.168.1.0/24")
@pytest.mark.parametrize(
"value",
(
"8.8.8.8",
"192.168.1.0/a",
"192.168.1.0/128",
"192.168.1.0/-1",
"192.168.1.999/24",
),
)
def test_invalid(self, value):
assert not is_valid_cidr(value)
Domain
Defined In
Source
Frequently Asked Questions
What is the TestIsValidCIDR class?
TestIsValidCIDR is a class in the requests codebase, defined in tests/test_utils.py.
Where is TestIsValidCIDR defined?
TestIsValidCIDR is defined in tests/test_utils.py at line 284.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free