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