Not critical, since this is just a test, but the following:
`hasattr(class_obj, "__unicode__")`
is a couple orders of magnitude faster than:
`"__unicode__" in dir(class_obj)`
(and is possibly more readable)