Removed all the with statement usage of assertRaises test to try to get things working with python2.6