Small test corrections.

This commit is contained in:
Dave Halter
2014-12-11 04:44:27 +01:00
parent 2dd8ed2270
commit d8067a7286
2 changed files with 8 additions and 9 deletions

View File

@@ -1,10 +1,10 @@
from jedi.parser import Parser
from jedi.parser import Parser, load_grammar
def test_basic_parsing():
def compare(string):
"""Generates the AST object and then regenerates the code."""
assert Parser(string).module.get_code() == string
assert Parser(load_grammar(), string).module.get_code() == string
compare('\na #pass\n')
compare('wblabla* 1\t\n')