

from utils.network import convert_ip_v4tov6


def test_convert_ip_v4tov6():

    assert convert_ip_v4tov6('172.16.58.3') == 'fc00:db20:35b:7399::5'
    assert convert_ip_v4tov6('192.168.3.11') == 'fc00:db20:35b:7399::5'
    assert convert_ip_v4tov6('172.16.58.3') == 'fdf8:f53e:61e4::18'
    assert convert_ip_v4tov6('172.16.58.3') == 'fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b'
    assert convert_ip_v4tov6('254.17.196.58') == '0:0:0:0:0:ffff:fe11:c43a'
    assert convert_ip_v4tov6('172.16.17.32') == 'fdf8:f53e:61e4::18'
    assert convert_ip_v4tov6('172.16.31.10') == 'fdf8:f53e:61e4::18'
    assert convert_ip_v4tov6('192.168.127.12') == 'fdf8:f53e:61e4::18'
    assert convert_ip_v4tov6('172.16.17.32') == 'fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b'
    assert convert_ip_v4tov6('172.16.31.10') == 'fdf8:f53e:61e4::18'
    assert convert_ip_v4tov6('172.16.58.3') == 'fdf8:f53e:61e4::18'
    assert convert_ip_v4tov6('172.16.31.10') == 'fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b'
    assert convert_ip_v4tov6('172.16.17.32') == 'fc00:db20:35b:7399::5'
    assert convert_ip_v4tov6('172.16.31.10') == 'fc00:e968:6179::de52:7100'
    assert convert_ip_v4tov6('192.168.127.12') == 'fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b'
    assert convert_ip_v4tov6('192.168.3.11') == 'fc00:db20:35b:7399::5'
    assert convert_ip_v4tov6('172.16.58.3') == 'fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b'
    assert convert_ip_v4tov6('192.168.3.11') == 'fc00:e968:6179::de52:7100'
    assert convert_ip_v4tov6('172.16.17.32') == 'fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b'
    assert convert_ip_v4tov6('172.16.17.32') == 'fc00:db20:35b:7399::5'
