예제 #1
0
파일: tests.py 프로젝트: jkjuopperi/ipgrep
def test_check_ip_by_m_mask_without_match():
    assert check_ip("127.0.0.0m8", "128.0.0.0") is False
예제 #2
0
파일: tests.py 프로젝트: jkjuopperi/ipgrep
def test_check_ip_by_m_mask():
    assert check_ip("127.0.0.0m8", "127.0.0.1") is True
예제 #3
0
파일: tests.py 프로젝트: jkjuopperi/ipgrep
def test_check_ip_no_match():
    assert check_ip("127.0.0.2", "127.0.0.1") is False
예제 #4
0
파일: tests.py 프로젝트: jkjuopperi/ipgrep
def test_check_ip_by_slash_mask():
    assert check_ip("127.0.0.0/8", "127.0.0.1") is True
예제 #5
0
파일: tests.py 프로젝트: jkjuopperi/ipgrep
def test_check_ip_identical():
    assert check_ip("127.0.0.1", "127.0.0.1") is True