コード例 #1
0
ファイル: test_util.py プロジェクト: hibellm/flask-hookserver
def test_bad_mapped_ips():
    assert not is_github_ip('::ffff:c01e:fbff')
    assert not is_github_ip('::ffff:c01f:1')
コード例 #2
0
ファイル: test_util.py プロジェクト: hibellm/flask-hookserver
def test_bad_ips():
    assert not is_github_ip('192.30.251.255')
    assert not is_github_ip('192.31.0.1')
コード例 #3
0
ファイル: test_util.py プロジェクト: hibellm/flask-hookserver
def test_ip_decoding():
    assert is_github_ip(b'192.30.252.1')
    assert is_github_ip(u'192.30.252.1')
コード例 #4
0
ファイル: test_util.py プロジェクト: hibellm/flask-hookserver
def test_mapped_ip():
    assert is_github_ip('::ffff:c01e:fc01')
コード例 #5
0
ファイル: test_util.py プロジェクト: hibellm/flask-hookserver
def test_correct_ip():
    assert is_github_ip('192.30.252.1')