def test_eligibility_flowexception(self):
        user = TestTools.create_mock_user()
        svcA, svcB = TestTools.create_mock_services()
        recA = TestTools.create_mock_svc_record(svcA)
        recB = TestTools.create_mock_svc_record(svcB)
        act = TestTools.create_blank_activity(svcA, record=recA)
        act.Origin = recA
        act.UIDs = set([act.UID])
        act.Record = ActivityRecord.FromActivity(act)
        User.SetFlowException(user, recA, recB, flowToTarget=False)
        recipientServices = [recA, recB]
        s = SynchronizationTask(None)
        s._excludedServices = {}
        s.user = user
        s._serviceConnections = recipientServices
        eligible = s._determineEligibleRecipientServices(act, recipientServices)
        self.assertTrue(recA in eligible)
        self.assertFalse(eligible in recB)
dataset/ETHPy150Open cpfair/tapiriik/tapiriik/testing/sync.py/SyncTests.test_eligibility_flowexception/swapped operands of `in`