def test_unicode_attribute():
 s1 = u('#-*- coding: utf-8 -*-\nclass Person():\n    name = "e"\n\nPerson().name.')
 completions1 = Script(s1).completions()
 assert ('strip' in [c.name for c in completions1])
 s2 = u('#-*- coding: utf-8 -*-\nclass Person():\n    name = "\xc3\xa9"\n\nPerson().name.')
 completions2 = Script(s2).completions()
 assert ('strip' in [c.name for c in completions2])

def test_unicode_attribute ( ) : s1 = u ( '#-*- coding: utf-8 -*-\nclass Person():\n    name = "e"\n\nPerson().name.' ) completions1 = Script ( s1 ) . completions ( ) assert ( 'strip' in [ c . name for c in completions1 ] ) s2 = u ( '#-*- coding: utf-8 -*-\nclass Person():\n    name = "\xc3\xa9"\n\nPerson().name.' ) completions2 = Script ( s2 ) . completions ( ) assert ( 'strip' in [ c . name for c in completions2 ] )
github jedi-vim issue #94 .