File: test_idna_other.py

package info (click to toggle)
python-idna 3.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,260 kB
  • sloc: python: 14,458; sh: 4; makefile: 3
file content (11 lines) | stat: -rwxr-xr-x 294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
"""Tests for other functions"""

import unittest

import idna


class OtherUTS46Tests(unittest.TestCase):
    def test_std3(self):
        self.assertEqual(idna.uts46_remap("A_", std3_rules=False), "a_")
        self.assertRaises(idna.InvalidCodepoint, idna.uts46_remap, "A_", std3_rules=True)