clean up one more type comparison in unit test
require unittest2 < 0.7 to avoid conflict with django test code