Use older unittest methods to allow testing in python 2.6, 2.5