Пример #1
0
 def test_pipeline_logging(self):
   result_path = self.create_temp_file()
   lines = ['we found love right where we are',
            'we found love right from the start',
            'we found love in a hopeless place']
   snippets.pipeline_logging(lines, result_path)
   self.assertEqual(
       sorted(' '.join(lines).split(' ')),
       self.get_output(result_path))
Пример #2
0
 def test_pipeline_logging(self):
   result_path = self.create_temp_file()
   lines = ['we found love right where we are',
            'we found love right from the start',
            'we found love in a hopeless place']
   snippets.pipeline_logging(lines, result_path)
   self.assertEqual(
       sorted(' '.join(lines).split(' ')),
       self.get_output(result_path))