Home
last modified time | relevance | path

Searched refs:encodedtextwrapped (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_uu.py19 encodedtextwrapped = "begin %03o %s\n" + encodedtext.replace("%", "%%") + "\n \nend\n" variable
27 self.assertEqual(out.getvalue(), encodedtextwrapped % (0666, "t1"))
31 self.assertEqual(out.getvalue(), encodedtextwrapped % (0644, "t1"))
34 inp = cStringIO.StringIO(encodedtextwrapped % (0666, "t1"))
41 encodedtextwrapped % (0666, "t1")
101 encodedtextwrapped % (0666, "t1")
105 sys.stdin = cStringIO.StringIO(encodedtextwrapped % (0666, "t1"))
128 self.assertEqual(s, encodedtextwrapped % (0o644, self.tmpin))
134 self.assertEqual(s, encodedtextwrapped % (0o644, self.tmpin))
138 f.write(encodedtextwrapped % (0o644, self.tmpout))
[all …]
/external/python/cpython3/Lib/test/
Dtest_uu.py49 def encodedtextwrapped(mode, filename, backtick=False): function
64 self.assertEqual(out.getvalue(), encodedtextwrapped(0o666, "t1"))
68 self.assertEqual(out.getvalue(), encodedtextwrapped(0o644, "t1"))
72 self.assertEqual(out.getvalue(), encodedtextwrapped(0o666, "t1", True))
78 inp = io.BytesIO(encodedtextwrapped(0o666, "t1", backtick=backtick))
85 encodedtextwrapped(0o666, "t1", backtick=backtick)
154 encodedtextwrapped(0o666, "t1").decode("ascii"))
157 sys.stdin = FakeIO(encodedtextwrapped(0o666, "t1").decode("ascii"))
183 self.assertEqual(s, encodedtextwrapped(0o644, self.tmpin))
189 self.assertEqual(s, encodedtextwrapped(0o644, self.tmpin))
[all …]