Esempio n. 1
0
 def test_supression(self):
     with config.supress(ValueError):
         raise ValueError
Esempio n. 2
0
 def test_supress_multiple(self):
     with config.supress(TypeError, ValueError):
         raise ValueError
Esempio n. 3
0
 def test_does_not_over_supress(self):
     with config.supress(TypeError):
         self.assertRaises(ValueError, int, 'notanint')
Esempio n. 4
0
 def test_supress_multiple(self):
     with config.supress(TypeError, ValueError):
         raise ValueError
Esempio n. 5
0
 def test_does_not_over_supress(self):
     with config.supress(TypeError):
         self.assertRaises(ValueError, int, 'notanint')
Esempio n. 6
0
 def test_supression(self):
     with config.supress(ValueError):
         raise ValueError