15 lines
297 B
Python
Executable File
15 lines
297 B
Python
Executable File
"""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)
|
|
|