Fixes compatibility to python 2.6

* assertRaises context manager was added in python 2.7