1
0
forked from VimPlug/jedi

Add test_attribute_docstring

This commit is contained in:
Takafumi Arakaki
2013-02-24 17:59:08 +01:00
parent b6839fb264
commit 540eff3d42

View File

@@ -337,6 +337,14 @@ class TestDocstring(TestBase):
func""")
self.assertEqual(defs[0].raw_doc, 'Docstring of `func`.')
def test_attribute_docstring(self):
# TODO: use self.definition
defs = self.goto("""
x = None
'''Docstring of `x`.'''
x""")
self.assertEqual(defs[0].raw_doc, 'Docstring of `x`.')
class TestFeature(TestBase):
def test_full_name(self):