unittest2 support

implements python 2.7 unittest methods for python <=2.6