fix: assertRaises and unittest for python 2.6