'Basic IPv6 address tests (part 1)'

def test_basics_part1(self):

    a = IPAddr6('2001:0db8:85a3:0000:0000:8a2e:0370:7334')
    assert (str(a) == '2001:db8:85a3::8a2e:370:7334'), 'minimal    repr'
    assert (a.to_str(zero_drop=False) == '2001:0db8:85a3::8a2e:0370:7334'), 'no    zero    drop'
    assert (a.to_str(section_drop=False) == '2001:db8:85a3:0:0:8a2e:370:7334'), 'no    section    drop'
    assert (a.to_str(section_drop=False, zero_drop=False) == '2001:0db8:85a3:0000:0000:8a2e:0370:7334'), 'full    length'
    assert (str(IPAddr6('0:0:0:0:0:0:0:1')) == '::1'), 'loopback'
    assert (str(IPAddr6('0:0:0:0:0:0:0:0')) == '::'), 'unspecified'
    assert (str(IPAddr6('2001:db8:0:0:0:0:2:1')) == '2001:db8::2:1')
    assert (str(IPAddr6('2001:db8:0000:1:1:1:1:1')) == '2001:db8:0:1:1:1:1:1')
    assert (str(IPAddr6('2001:db8:0:0:1:0:0:1')) == '2001:db8::1:0:0:1')
    assert (str(IPAddr6('1:0:0:2:0:0:0:3')) == '1:0:0:2::3')
