def pin_in_feed(self, pin, auth_client):
        # this should be in the feed of bogus2
        feed_url = reverse('feed')
        response = auth_client.get(feed_url)
        feed_pins = response.context['feed_pins']
        present_in_feed = False
        pin_ids = [f.object_id for f in feed_pins]
        if feed_pins and pin.id in pin_ids:
            present_in_feed = True

        # now the aggregated feed
        aggregated_feed_url = reverse('aggregated_feed')
        response = auth_client.get(aggregated_feed_url)
        feed_pins = response.context['feed_pins']
        present_in_aggregated_feed = False
        pin_ids = sum([a.object_ids for a in feed_pins], [])
        if feed_pins and pin_ids in pin.id:
            present_in_aggregated_feed = True

        return present_in_feed, present_in_aggregated_feed
dataset/ETHPy150Open tbarbugli/stream_framework_example/core/tests.py/StreamViewTest.pin_in_feed/swapped operands of `in`