Lines Matching refs:pipes
1 import pipes
24 t = pipes.Template()
25 t.append(s_command, pipes.STDIN_STDOUT)
37 t = pipes.Template()
38 t.append(s_command + ' < $IN > $OUT', pipes.FILEIN_FILEOUT)
48 t = pipes.Template()
49 t.append(s_command + ' < $IN', pipes.FILEIN_STDOUT)
63 t=pipes.Template()
73 t=pipes.Template()
83 t = pipes.Template()
90 t = pipes.Template()
92 t.append('tr a-z A-Z', pipes.STDIN_STDOUT)
97 t = pipes.Template()
106 t = pipes.Template()
107 t.append('boguscmd', pipes.SINK)
113 t = pipes.Template()
114 t.prepend('boguscmd', pipes.SOURCE)
118 t = pipes.Template()
121 self.assertRaises(TypeError, t.append, 7, pipes.STDIN_STDOUT)
127 self.assertRaises(ValueError, t.append, 'boguscmd', pipes.SOURCE)
130 t = pipes.Template()
131 t.append('boguscmd', pipes.SINK)
132 self.assertRaises(ValueError, t.append, 'boguscmd', pipes.SINK)
135 t = pipes.Template()
137 pipes.FILEIN_FILEOUT)
138 t = pipes.Template()
140 pipes.FILEIN_STDOUT)
143 t = pipes.Template()
145 pipes.FILEIN_FILEOUT)
146 t = pipes.Template()
148 pipes.STDIN_FILEOUT)
152 t = pipes.Template()
155 self.assertRaises(TypeError, t.prepend, 7, pipes.STDIN_STDOUT)
161 self.assertRaises(ValueError, t.prepend, 'boguscmd', pipes.SINK)
164 t = pipes.Template()
165 t.prepend('boguscmd', pipes.SOURCE)
166 self.assertRaises(ValueError, t.prepend, 'boguscmd', pipes.SOURCE)
169 t = pipes.Template()
171 pipes.FILEIN_FILEOUT)
172 t = pipes.Template()
174 pipes.FILEIN_STDOUT)
177 t = pipes.Template()
179 pipes.FILEIN_FILEOUT)
180 t = pipes.Template()
182 pipes.STDIN_FILEOUT)
185 t = pipes.Template()
189 t = pipes.Template()
190 t.append('tr a-z A-Z', pipes.STDIN_STDOUT)