Merge branch 'get_code_fidelity' of git://github.com/ganwell/jedi into ganwell

This commit is contained in:
Dave Halter
2014-02-12 11:09:08 +01:00
8 changed files with 173 additions and 21 deletions

View File

@@ -19,12 +19,16 @@ def test_fake_loading():
assert isinstance(compiled.create(next), Function)
string = compiled.builtin.get_subscope_by_name('str')
from_name = compiled._create_from_name(compiled.builtin, string, '__init__')
from_name = compiled._create_from_name(
compiled.builtin,
string,
'__init__'
)
assert isinstance(from_name, Function)
def test_fake_docstr():
assert compiled.create(next).docstr == next.__doc__
assert compiled.create(next).docstr.as_string() == next.__doc__
def test_parse_function_doc_illegal_docstr():