From 3ab2b0a24472e5cc8e2a770ec6056e07ae9bf609 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Thu, 14 Feb 2013 20:26:31 +0100 Subject: [PATCH] Added (failing) regression test for davidhalter/jedi-vim#94 --- test/regression.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/regression.py b/test/regression.py index e818ec1a..30916979 100755 --- a/test/regression.py +++ b/test/regression.py @@ -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_")