fixes bug 908214 - replace self.assertRaises with assert_raises

@AdrianGaudebert r?