def test_is_ipaddress_allowed(self): is_ipaddress_allowed.cache_clear() assert is_ipaddress_allowed("127.0.0.1") is False is_ipaddress_allowed.cache_clear() assert is_ipaddress_allowed("10.0.1.1") is False is_ipaddress_allowed.cache_clear() assert is_ipaddress_allowed("1.1.1.1") is True
def test_is_ipaddress_allowed(self): assert is_ipaddress_allowed('127.0.0.1') is False assert is_ipaddress_allowed('10.0.1.1') is False assert is_ipaddress_allowed('1.1.1.1') is True