def wrapped_test_method(*args): addExpectedRequest('POST', rdiff_url('common-one', oldprj, newprj), exp='', text='') addExpectedRequest('POST', rdiff_url('common-two', oldprj, newprj), exp='', file='common-two-diff') addExpectedRequest('POST', rdiff_url('common-three', oldprj, newprj), exp='', text='') test_method(*args)
def wrapped_test_method(*args): for project in projects: addExpectedRequest('GET', API_URL + 'source/' + project, file='%s/directory' % project) test_method(*args)