avoid unittest method not available for python2.6