def test__parse_expression_multiple(self): self.assertEqual(_parse_expression('x_plural<s|ve>'), ('x', ['s', 've']))
def test__parse_expression_default(self): self.assertEqual(_parse_expression('x_plural'), ('x', ['s']))
def test__parse_expression_single(self): self.assertEqual(_parse_expression('x_plural<es>'), ('x', ['es']))
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))