Followup to #2811, adding an actual test for deprecated staticmethods and classmethods after reports that it didn't work on Python 2.6
Merge pull request #2817 from embray/issue-2811-2

Followup to #2811