#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from rapidfuzz import process, fuzz, utils class UtilsTest(unittest.TestCase): def test_fullProcess(self): mixed_strings = [ "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", "C'est la vie", u"Ça va?", u"Cães danados", u"¬Camarões assados", u"a¬ሴ€耀", u"Á" ] mixed_strings_proc = [ "lorem ipsum is simply dummy text of the printing and typesetting industry", "c est la vie", u"Ça va", u"cães danados", u"¬camarões assados", u"a¬ሴ€耀", u"Á" ] for string, proc_string in zip(mixed_strings, mixed_strings_proc): self.assertEqual( utils.default_process(string), proc_string) if __name__ == '__main__': unittest.main()