def test_supression(self): with config.supress(ValueError): raise ValueError
def test_supress_multiple(self): with config.supress(TypeError, ValueError): raise ValueError
def test_does_not_over_supress(self): with config.supress(TypeError): self.assertRaises(ValueError, int, 'notanint')