def test_model_pcollection(self):
    temp_path = self.create_temp_file()
    snippets.model_pcollection([temp_path % '--output=%s'])
    self.assertEqual(self.get_output(temp_path, sorted_output=False), [
        'To be, or not to be: that is the question: ',
        'Whether \'tis nobler in the mind to suffer ',
        'The slings and arrows of outrageous fortune, ',
        'Or to take arms against a sea of troubles, '])
dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/examples/snippets/snippets_test.py/SnippetsTest.test_model_pcollection/swapped operands of `%`