basics/tests for following imports if possible (on completion), #54.

This commit is contained in:
David Halter
2012-12-03 00:56:27 +01:00
parent 1940fbe4fe
commit c28d3617b7
2 changed files with 21 additions and 2 deletions

View File

@@ -227,6 +227,12 @@ class TestRegression(Base):
s = self.complete("import os; os.P_")
assert 'P_NOWAIT' in [i.word for i in s]
def test_follow_imports_if_possible(self):
""" github issue #45 """
s = self.complete("import datetime.timedelta; datetime.timedelta")
print s, [r.name.parent() for r in s], [r.type for r in s]
assert 'Import' not in [r.type for r in s]
class TestFeature(Base):
def test_full_name(self):