assertRaises can not be used as context in py2.6