Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
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)
Beispiel #4
0
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)