unittest2 support

implements python 2.7 unittest methods for python <=2.6
Merge pull request #72 from pall-valmundsson/unittest2

unittest2 support