Buckets:

download
raw
407 Bytes
import pytest
from fief.services.localhost import is_localhost
@pytest.mark.parametrize(
"host,result",
[
("127.0.0.1", True),
("localhost", True),
("192.168.0.42", True),
("192.168.1.1", True),
("www.bretagne.duchy", False),
("www.fief.dev", False),
],
)
def test_is_localhost(host: str, result: bool):
assert is_localhost(host) == result

Xet Storage Details

Size:
407 Bytes
·
Xet hash:
4d9020edf60c8a86243f8e2a3764ff8837f124bc81ef20f10520207b6540b384

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.