Пример #1
0
 def test__parse_expression_multiple(self):
     self.assertEqual(_parse_expression('x_plural<s|ve>'),
                      ('x', ['s', 've']))
Пример #2
0
 def test__parse_expression_default(self):
     self.assertEqual(_parse_expression('x_plural'), ('x', ['s']))
Пример #3
0
 def test__parse_expression_single(self):
     self.assertEqual(_parse_expression('x_plural<es>'), ('x', ['es']))
Пример #4
0
 def test__parse_expression_no_match(self):
     self.assertEqual(_parse_expression('x_suffix<s>'), (None, None))
     self.assertEqual(_parse_expression('_plural<s>'), (None, None))
     self.assertEqual(_parse_expression('x_plural<>'), (None, None))
     self.assertEqual(_parse_expression('x_plural<s>>'), (None, None))