def test_pull_message(self):
        """Try to pull messages from a subscription."""
        with captured_output() as (out, _):
            main(['pubsub_sample.py', get_project_id(), 'pull_messages',
                  self.sub, '-n'])
            output = out.getvalue().strip()
        for message in self.messages:
            self.assertTrue(output in message)
dataset/ETHPy150Open GoogleCloudPlatform/cloud-pubsub-samples-python/cmdline-pull/test_pubsub_sample.py/PubsubSampleTestCase.test_pull_message/swapped operands of `in`