Replace assertIs with assertTrue,
because assertIs is not supported in Python 2.6