OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
third_party
/
idna
/
tests
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
12/11/2024 09:39:44 AM
rwxr-xr-x
📄
IdnaTestV2.txt
699.98 KB
09/15/2024 06:03:01 PM
rw-r--r--
📄
__init__.py
0 bytes
09/15/2024 06:03:01 PM
rw-r--r--
📄
test_idna.py
13.25 KB
09/15/2024 06:03:01 PM
rw-r--r--
📄
test_idna_codec.py
3.84 KB
09/15/2024 06:03:01 PM
rw-r--r--
📄
test_idna_compat.py
603 bytes
09/15/2024 06:03:01 PM
rw-r--r--
📄
test_idna_other.py
294 bytes
09/15/2024 06:03:01 PM
rw-r--r--
📄
test_idna_uts46.py
8.11 KB
09/15/2024 06:03:01 PM
rw-r--r--
📄
test_intranges.py
2.09 KB
09/15/2024 06:03:01 PM
rw-r--r--
Editing: test_idna_compat.py
Close
#!/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()