File: test_unicode.py

package info (click to toggle)
python-inflect 7.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: python: 4,807; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
import inflect


class TestUnicode:
    """Unicode compatibility test cases"""

    def test_unicode_plural(self):
        """Unicode compatibility test cases for plural"""
        engine = inflect.engine()
        unicode_test_cases = {"cliché": "clichés", "ångström": "ångströms"}
        for singular, plural in unicode_test_cases.items():
            assert plural == engine.plural(singular)