3 from pydhcplib.type_hw_addr import hwmac
9 address1 = hwmac("ff:11:22:33:44:55")
10 print "a1 : ",address1
12 address2 = hwmac("f6.16.26.36.46.56")
13 print "a2 : ",address2
15 address3 = hwmac("ff.11-22:33-44.55")
16 print "a3 : ",address3
20 if address1 == address2 : print "test 1 : ",address1, "==",address2
21 else : print "test 1 : " ,address1, "!=",address2
23 if address1 == address3 : print "test 2 : ", address1, "==",address3
24 else : print "test 2 : ", address1, "!=",address3
28 address4 = hwmac([186, 45, 67, 176, 6, 11])
29 address5 = hwmac("ba:2d:43:b0:06:0c")
31 print "b0 : ", address4,address4.list()
32 print "b1 : ", address5,address5.list()