Beispiel #1
0
def test_0_0_0_0_0():
    assert ipv4('0.0.0.0') == '0.0.0.0'
Beispiel #2
0
def test_1_255_255_255_255():
    assert ipv4('255.255.255.255') == '255.255.255.255'
Beispiel #3
0
def test_6_4_staging_production_lan():
    with pytest.raises(ValueError) as excinfo:
        ipv4('4.staging.production.lan')
Beispiel #4
0
def test_5_localhost():
    with pytest.raises(ValueError) as excinfo:
        ipv4('localhost')
Beispiel #5
0
def test_4_255_255_255_256():
    with pytest.raises(ValueError) as excinfo:
        ipv4('255.255.255.256')
Beispiel #6
0
def test_3_10_10_10_10():
    assert ipv4('10.10.10.10') == '10.10.10.10'
Beispiel #7
0
def test_2_192_168_0_1():
    assert ipv4('192.168.0.1') == '192.168.0.1'