コード例 #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)