def test_app_lex_ebnf(bundle): App.lex('/path', ebnf='my.ebnf') Bundle.from_path().lex.assert_called_with(ebnf='my.ebnf')
def test_app_lex(bundle): result = App.lex('/path') Bundle.from_path.assert_called_with('/path') Bundle.from_path().lex.assert_called_with(ebnf=None) assert result == Bundle.from_path().lex()