Exemple #1
0
def test_transformer_arguments_short():
    matches = [Tree('path', ['token'])]
    expected = ['token', Tree('path', ['token'])]
    assert Transformer.arguments(matches) == Tree('arguments', expected)
Exemple #2
0
def test_transformer_arguments():
    assert Transformer.arguments('matches') == Tree('arguments', 'matches')