Esempio n. 1
0
 def test_file_smart_open_can_read_multistream_bz2(self):
     test_file = self.create_temp_bz2(streams=5)
     with smart_open_lib.file_smart_open(test_file) as bz2f:
         self.assertEqual(bz2f.read(), self.TEXT * 5)
     self.cleanup_temp_bz2(test_file)
Esempio n. 2
0
 def test_file_smart_open_can_read_multistream_bz2(self):
     test_file = self.create_temp_bz2(streams=5)
     with smart_open_lib.file_smart_open(test_file) as bz2f:
         self.assertEqual(bz2f.read(), self.TEXT * 5)
     self.cleanup_temp_bz2(test_file)