Fixed tests for python 2.6

Python 2.6 does not support the context manager version of
assertRaises.
Merge pull request #3 from janrain/topic/compat-fix-2.6-test

Fixed tests for python 2.6