The check would be better reflected as `assertTrue(isinstance(...), ...)`. Equality is not what you usually check when comparing types.