'Basic IPv6 address tests (part 2)'

def test_part2(self):

    h = '\xfe\x80\x00\x00\x00\x00\x00\x00\xba\x8d\x12\xff\xfe*\xddn'
    a = IPAddr6.from_raw(h)
    assert (str(a) == 'fe80::ba8d:12ff:fe2a:dd6e')
    assert (a.raw == h)
    assert (a.num == 338288524927261089667461318194808675694L)
    assert (IPAddr6.from_num(a.num) == a)
    assert (a.is_multicast is False)
    assert IPAddr6('FF02:0:0:0:0:0:0:1').is_multicast
    assert (IPAddr6('2001:db8:1:2::').set_mac('00:1D:BA:06:37:64') == '2001:db8:1:2:021d:baff:fe06:3764')
    assert (IPAddr6('0:0:0:0:0:FFFF:222.1.41.90') == '::ffff:222.1.41.90')
    assert (IPAddr6('::ffff:C0A8:5') == '::ffff:192.168.0.5')
    assert (IPAddr6('::ffff:192.168.0.5') == '::ffff:c0a8:5')
