test_idna_other.py 297 B

1234567891011121314
  1. """Tests for other functions"""
  2. import unittest
  3. import idna
  4. class OtherUTS46Tests(unittest.TestCase):
  5. def test_std3(self):
  6. self.assertEqual(idna.uts46_remap('A_', std3_rules=False), 'a_')
  7. self.assertRaises(idna.InvalidCodepoint, idna.uts46_remap, 'A_', std3_rules=True)