Fixed py26 errors related to using assert_raises in tests.