def test_get_description_from_docstring(self): class Test1(object): """First line. Subsequent lines. """ self.assertEqual("First line.", BuildDictionaryInfoExtracter.get_description_from_docstring(Test1)) class Test2(object): """Only one line.""" self.assertEqual("Only one line.", BuildDictionaryInfoExtracter.get_description_from_docstring(Test2))
def test_get_description_from_docstring(self): class Test1(object): """First line. Subsequent lines. """ self.assertEqual('First line.', BuildDictionaryInfoExtracter.get_description_from_docstring(Test1)) class Test2(object): """Only one line.""" self.assertEqual('Only one line.', BuildDictionaryInfoExtracter.get_description_from_docstring(Test2))
def test_get_description_from_docstring(self): class Test1(object): """First line. Subsequent lines. with indentations """ self.assertEqual(('First line.', ['Subsequent', 'lines.', '', ' with indentations']), BuildDictionaryInfoExtracter.get_description_from_docstring(Test1)) class Test2(object): """Only one line.""" self.assertEqual(('Only one line.', []), BuildDictionaryInfoExtracter.get_description_from_docstring(Test2))
def test_get_description_from_docstring(self): class Test1(object): """First line. Subsequent lines. with indentations """ self.assertEqual(('First line.', ['Subsequent', 'lines.', '', ' with indentations']), BuildDictionaryInfoExtracter.get_description_from_docstring(Test1)) class Test2(object): """Only one line.""" self.assertEqual(('Only one line.', []), BuildDictionaryInfoExtracter.get_description_from_docstring(Test2))
def test_get_description_from_docstring(self): class Test1(object): """First line. Subsequent lines. with indentations """ self.assertEqual( ("First line.", ["Subsequent", "lines.", "", " with indentations"]), BuildDictionaryInfoExtracter.get_description_from_docstring(Test1), ) class Test2(object): """Only one line.""" self.assertEqual( ("Only one line.", []), BuildDictionaryInfoExtracter.get_description_from_docstring(Test2), )