portable assertRaises tests