コード例 #1
0
 def test_write_read_string(self):
     with tempfile.TemporaryFile() as f:
         value = u'test'
         write_string(f, value)
         f.seek(0)
         self.assertEqual(read_string(f), value)
コード例 #2
0
 def test_write_read_string(self):
     with tempfile.TemporaryFile() as f:
         value = u'test'
         write_string(f, value)
         f.seek(0)
         self.assertEqual(read_string(f), value)