fix assertRaises usage