

def make_request_and_skipIf(condition, reason):
    if (not condition):
        return (lambda func: func)

    def decorator(func):

        def make_request_and_skip(self):
            self.client.request('GET', '/')
            self.client.getresponse()
            raise unittest.SkipTest(reason)
        return make_request_and_skip
    return decorator

dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_docxmlrpc.py make_request_and_skipIf/original