Esempio n. 1
0
def test_transformer_command(patch, magic):
    patch.object(Transformer, 'is_keyword')
    result = Transformer.command(['matches'])
    Transformer.is_keyword.assert_called_with('matches')
    assert result == Tree('command', ['matches'])
Esempio n. 2
0
def test_transformer_command(patch, magic):
    result = Transformer.command(["matches"])
    assert result == Tree("command", ["matches"])