Ejemplo n.º 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)
Ejemplo n.º 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)