Lines Matching refs:get_docstring
525 self.assertEqual(ast.get_docstring(node),
529 self.assertEqual(ast.get_docstring(node.body[0]),
533 self.assertEqual(ast.get_docstring(node.body[0]),
537 self.assertEqual(ast.get_docstring(node.body[0]), 'spam\nham')
540 self.assertIsNone(ast.get_docstring(ast.parse('')))
542 self.assertIsNone(ast.get_docstring(node))
544 self.assertIsNone(ast.get_docstring(node))
547 self.assertIsNone(ast.get_docstring(node.body[0]))
549 self.assertIsNone(ast.get_docstring(node.body[0]))
551 self.assertIsNone(ast.get_docstring(node.body[0]))
554 self.assertIsNone(ast.get_docstring(node.body[0]))
556 self.assertIsNone(ast.get_docstring(node.body[0]))
559 self.assertIsNone(ast.get_docstring(node.body[0]))
561 self.assertIsNone(ast.get_docstring(node.body[0]))
1070 self.assertEqual(ast.get_docstring(tree), 'docstring')