Esempio n. 1
0
    def compare(self, _from, _to, group):
        """Compare data for `_from` and `_to` in the test group `group`."""
        source = DATA[_from][group]

        # Regularize whitespace
        actual = ' '.join(S.transliterate(source, _from, _to).split())
        expected = ' '.join(DATA[_to][group].split())
        self.assertEqual(expected, actual)
Esempio n. 2
0
    def compare(self, _from, _to, group):
        """Compare data for `_from` and `_to` in the test group `group`."""
        source = DATA[_from][group]

        # Regularize whitespace
        actual = ' '.join(S.transliterate(source, _from, _to).split())
        expected = ' '.join(DATA[_to][group].split())
        self.assertEqual(expected, actual)
Esempio n. 3
0
 def func(input, output):
     self.assertEqual(output, S.transliterate(input, _from, _to))
Esempio n. 4
0
 def func(input, output):
     self.assertEqual(output, S.transliterate(input, _from, _to))