def METHOD_NAME(self):
    def t1(): 'doc'
    t1.tip = "()"
    def t2(a, b=None): 'doc'
    t2.tip = "(a, b=None)"
    def t3(a, *args): 'doc'
    t3.tip = "(a, *args)"
    def t4(*args): 'doc'
    t4.tip = "(*args)"
    def t5(a, b=None, *args, **kwds): 'doc'
    t5.tip = "(a, b=None, *args, **kwargs)"
    doc = '\ndoc' if t1.__doc__ is not None else ''
    for func in (t1, t2, t3, t4, t5, TC):
        self.assertEqual(signature(func), func.tip + doc)