aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/idna/py2/tests/test_idna_other.py
blob: ee03eeac5e1c746f59820d3df93ac34c3465ac1d (plain) (blame)
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)