Fix inside test, and fix deprecation for the trivial case where deprecated is called immediately inside classmethod

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/deprecated-instance-methods-4804-2@43541 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb