TST Replace failUnlessRaises with assertRaises...

...to avoid deprecation warning