Example #1
0
def test_check_ip_by_m_mask_without_match():
    assert check_ip("127.0.0.0m8", "128.0.0.0") is False
Example #2
0
def test_check_ip_by_m_mask():
    assert check_ip("127.0.0.0m8", "127.0.0.1") is True
Example #3
0
def test_check_ip_no_match():
    assert check_ip("127.0.0.2", "127.0.0.1") is False
Example #4
0
def test_check_ip_by_slash_mask():
    assert check_ip("127.0.0.0/8", "127.0.0.1") is True
Example #5
0
def test_check_ip_identical():
    assert check_ip("127.0.0.1", "127.0.0.1") is True