Beispiel #1
0
 def test_port_to_bytes_xor(self):
     port_bytes = stun.port_to_bytes(1234, True)
     self.assertEqual('%\xc0', port_bytes)
Beispiel #2
0
 def test_port_to_bytes_xor(self):
     port_bytes = stun.port_to_bytes(1234, True)
     self.assertEqual('%\xc0', port_bytes)
Beispiel #3
0
 def test_port_to_bytes(self):
     port_bytes = stun.port_to_bytes(1234, False)
     self.assertEqual('\x04\xd2', port_bytes)
Beispiel #4
0
 def test_port_to_bytes(self):
     port_bytes = stun.port_to_bytes(1234, False)
     self.assertEqual('\x04\xd2', port_bytes)