it was my understanding that mocking the call to get bridges in the setup function will result in it being mocked in all tests in this class  as the setup function is invoke before each test is run any mocked functions object would cascade into  be mocked in  each of the test  sorry if my first comment was unclear  this would normally be true however as the mocks are defined in a with contextlib nested block you are correct it will not cascade as the scope of the mock is limited to the contextlib block  i will resubmit the updated patch shortly with this change 