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'])
def test_transformer_command(patch, magic): result = Transformer.command(["matches"]) assert result == Tree("command", ["matches"])