changed assertIsNone to assertTrue to be py26 compatible.