trying the assertRaises() without the with statement as this causes the test to fail in 2.6 Travis CI test cases