Example #1
0
 def test_ip_to_bytes_xor(self):
     addr_bytes = stun.ip_to_bytes('192.168.11.1', True)
     self.assertEqual('\xe1\xba\xafC', addr_bytes)
Example #2
0
 def test_ip_to_bytes_xor(self):
     addr_bytes = stun.ip_to_bytes('192.168.11.1', True)
     self.assertEqual('\xe1\xba\xafC', addr_bytes)
Example #3
0
 def test_ip_to_bytes(self):
     addr_bytes = stun.ip_to_bytes('192.168.11.1', False)
     self.assertEqual('\xc0\xa8\x0b\x01', addr_bytes)
Example #4
0
 def test_ip_to_bytes(self):
     addr_bytes = stun.ip_to_bytes('192.168.11.1', False)
     self.assertEqual('\xc0\xa8\x0b\x01', addr_bytes)