Commit 705fd474 authored by Walter Dörwald's avatar Walter Dörwald

Add a test for uu.encode() that passed filenames as

in_file and out_file.
parent c69d1c49
......@@ -128,6 +128,14 @@ class UUFileTest(unittest.TestCase):
s = fout.read()
fout.close()
self.assertEqual(s, encodedtextwrapped % (0644, self.tmpin))
# in_file and out_file as filenames
uu.encode(self.tmpin, self.tmpout, mode=0644)
fout = open(self.tmpout, 'r')
s = fout.read()
fout.close()
self.assertEqual(s, encodedtextwrapped % (0644, self.tmpin))
finally:
self._kill(fin)
self._kill(fout)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment