def assertWrapperExceptionTypes(self, deferred, mainType, reasonTypes):
    def cbFailed(err):
        for reason, type in zip(err.reasons, reasonTypes):
            reason.trap(type)
        self.assertEqual(len(err.reasons), len(reasonTypes),
                         "len(%s) != len(%s)" % (err.reasons, reasonTypes))
        return err
    d = self.assertFailure(deferred, mainType)
    d.addCallback(cbFailed)
    return d
Make sure the specified module, when imported, raises a
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/assertWrapperExceptionTypes--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_py3kwarn.py/TestStdlibRemovals.check_removal