from sympy.core.cache import cacheit

def test_cacheit_doc():
    @cacheit
    def testfn():
        "test docstring"
        pass

    assert testfn.__doc__ == "test docstring"
    assert testfn.__name__ == "testfn"

Add a test for the @cachit decorator.
Add a test for the @cachit decorator.

Make sure that the caching decorator correctly
copies over the function docstring and function name.

This fixes issue #744 from the issue tracker.

Signed-off-by: Jochen Voss <1dcd5c846f3eb4984f0655fb5407be7c9e0c9079@seehuhn.de>
Signed-off-by: Ondrej Certik <b816faa87b7d35274d2e545c5be11ed4376f3ccf@certik.cz>
