Added (failing) regression test for davidhalter/jedi-vim#94

This commit is contained in:
Danilo Bargen
2013-02-14 20:26:31 +01:00
parent 1735bdb3c3
commit 3ab2b0a244

View File

@@ -259,6 +259,15 @@ class TestRegression(TestBase):
else:
assert len(self.complete(s, (1, len(code))))
def test_unicode_attribute(self):
""" github jedi-vim issue #94 """
s1 = utf8('#-*- coding: utf-8 -*-\nclass Person():\n name = "e"\n\nPerson().name.')
completions1 = self.complete(s1)
assert 'strip' in [c.word for c in completions1]
s2 = utf8('#-*- coding: utf-8 -*-\nclass Person():\n name = "é"\n\nPerson().name.')
completions = self.complete(s2)
assert 'strip' in [c.word for c in completions2]
def test_os_nowait(self):
""" github issue #45 """
s = self.complete("import os; os.P_")