def test_speg_parser_invalid(grammar_file): content = read_file(grammar_file) speg = sp.SimplePegParser() ast = speg.parse(content) assert not ast