Exemplo n.º 1
0
 def test_file_write_action(self):
     tmpfile = tempfile.mkstemp()[1]
     rewrite_pydoc.write_output_file(tmpfile, 'The contents.\n')
Exemplo n.º 2
0
 def test_file_write_action(self):
     tmpfile = tempfile.mkstemp()[1]
     rewrite_pydoc.write_output_file(tmpfile, 'The contents.\n')
Exemplo n.º 3
0
 def test_file_write_contents(self):
     tmpfile = tempfile.mkstemp()[1]
     rewrite_pydoc.write_output_file(tmpfile, 'The contents.\n')
     istream = open(tmpfile, 'r')
     contents = istream.read()
     self.assertEqual(contents, 'The contents.\n')
Exemplo n.º 4
0
 def test_file_write_contents(self):
     tmpfile = tempfile.mkstemp()[1]
     rewrite_pydoc.write_output_file(tmpfile, 'The contents.\n')
     istream = open(tmpfile, 'r')
     contents = istream.read()
     self.assertEqual(contents, 'The contents.\n')