def test_check_class_docstring(): '''docstring value ''' blocks = dict(test_module=__file__, test_case='DummyTestCase', func='test_assert') assert dict(func_docstr='docstring metodo\n ', class_docstr='Docstring de classe\n ') == extract_docstr(blocks)
def test_check_func_docstring(): '''docstring value ''' blocks = dict(test_module=__file__, test_case=None, func='test_check_func_docstring') assert dict(func_docstr='docstring value\n ', class_docstr=None) == extract_docstr(blocks)
def test_check_class_docstring(): '''docstring value ''' blocks = dict(test_module=__file__, test_case='DummyTestCase', func='test_assert') assert dict( func_docstr='docstring metodo\n ', class_docstr='Docstring de classe\n ') == extract_docstr(blocks)