human
I wrote the below code

    class A(object, ):
        u'Docstring'
        @deprecated(u'1.0')
        @staticmethod
        def B():
            pass
        @deprecated(u'1.0')
        @classmethod
        def C(cls):
            pass
    with catch_warnings(AstropyDeprecationWarning) as w:
        A.B()
    assert (len(w) == 1)
    if (A.__doc__ is not None):
        assert (u'deprecated' in A.B.__doc__)
    with catch_warnings(AstropyDeprecationWarning) as w:
        A.C()
    assert (len(w) == 1)
    if (A.__doc__ is not None):
        assert (u'deprecated' in A.C.__doc__)

What's a good function header?
assistant
#Here's a good function header.

def test_deprecated_static_and_classmethod():