File: test_idna_other.py

package info (click to toggle)
python-idna 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 572 kB
  • sloc: python: 11,779; sh: 6; makefile: 3
file content (14 lines) | stat: -rwxr-xr-x 297 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""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)