Esempio n. 1
0
 def test_file_write_action(self):
     tmpfile = tempfile.mkstemp()[1]
     rewrite_pydoc.write_output_file(tmpfile, 'The contents.\n')
Esempio n. 2
0
 def test_file_write_action(self):
     tmpfile = tempfile.mkstemp()[1]
     rewrite_pydoc.write_output_file(tmpfile, 'The contents.\n')
Esempio 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')
Esempio 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')