Followup to #2811

#2811 made a couple small fixes to the `deprecated` decorator.  But this adds an actual test for deprecated staticmethods and classmethods after reports that it didn't work on Python 2.6