Exemplo n.º 1
0
 def test_phoneNumberPacking(self):
     from smspdu.pdu import unpackPhoneNumber, packPhoneNumber
     ae = self.assertEqual
     input = bytes([0x72, 0x38, 0x88, 0x09, 0x00, 0xF1])
     output = '27838890001'
     ae(unpackPhoneNumber(input), output)
     ae(packPhoneNumber(output), input)
Exemplo n.º 2
0
 def test_phoneNumberPacking(self):
     from smspdu.pdu import unpackPhoneNumber, packPhoneNumber
     ae = self.assertEquals
     input = ''.join([chr(x) for x in (0x72, 0x38, 0x88, 0x09, 0x00, 0xF1)])
     output = '27838890001'
     ae(unpackPhoneNumber(input), output)
     ae(packPhoneNumber(output), input)
Exemplo n.º 3
0
 def test_phoneNumberPacking(self):
     from smspdu.pdu import unpackPhoneNumber, packPhoneNumber
     ae = self.assertEquals
     input = ''.join([chr(x) for x in
                             (0x72, 0x38, 0x88, 0x09, 0x00, 0xF1)])
     output = '27838890001'
     ae(unpackPhoneNumber(input), output)
     ae(packPhoneNumber(output), input)