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