fixes bug 908214 - replace self.assertRaises with assert_raises, r=AdrianGaudebert