Don't use 'with assert_raises', it doesn't work on Python 2.6