TST: Use assertTrue rather than assertIs for python 2.6