[testlib] Remove old TestCase.assertRaises code [applied]