Пример #1
0
 def test_model_pcollection(self):
   temp_path = self.create_temp_file()
   snippets.model_pcollection(['--output=%s' % temp_path])
   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, '])
Пример #2
0
 def test_model_pcollection(self):
   temp_path = self.create_temp_file()
   snippets.model_pcollection(['--output=%s' % temp_path])
   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, '])