예제 #1
0
 def test_getCatches_3(self):
     _raw = [['base'], ['otherbase'], ['first'], ['second']]
     _Expected = ['base', 'otherbase', 'first', 'second']
     _Actual = Exceptions.getCatches(_raw)
     self.assertListEqual(_Actual, _Expected)
예제 #2
0
 def test_getCatches_4(self):
     _raw = [['BaseException'], ['KeyError']]
     _Expected = ['BaseException', 'KeyError']
     _Actual = Exceptions.getCatches(_raw)
     self.assertListEqual(_Actual, _Expected)
예제 #3
0
 def test_getCatches_2(self):
     _raw = [['ArithmeticError'], ['ZeroDivisionError']]
     _Expected = ['ArithmeticError', 'ZeroDivisionError']
     _Actual = Exceptions.getCatches(_raw)
     self.assertListEqual(_Actual, _Expected)