def MockDoAnyAuth(self, fail=False, and_return=None):
    """Mock calling auth.DoAnyAuth().

    Args:
      fail: bool, whether to fail or not
      and_return: any, variable to pass to AndReturn, default None
    """
    if self._set_mock not in 'authDoAnyAuth':
      self.mox.StubOutWithMock(auth, 'DoAnyAuth')
      self._set_mock['authDoAnyAuth'] = 1
    if fail:
      auth.DoAnyAuth().AndRaise(auth.NotAuthenticated)
    else:
      auth.DoAnyAuth().AndReturn(and_return)
dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/test.py/RequestHandlerTest.MockDoAnyAuth/swapped operands of `not in`