def testPipeFourNamedCommands(self): #{{{
     '''Create pipes between four named commands'''
     ls, grep, sed = cmd.name('ls'), cmd.name('grep'), cmd.name('sed')
     p = ls(datadir) | grep('a') | grep('ariel') | sed('-e', 's/a/O/g')
     res = p().replace('\n', '')
     self.assertEqual(res, 'Oriel')
 def testPipeTwoNamedCommands(self): #{{{
     '''Create pipe between two named commands'''
     ls, grep = cmd.name('ls'), cmd.name('grep')
     p = ls(datadir) | grep('a')
     res = set(n for n in p().replace('\n', ' ').split(' ') if n)
     self.assertEqual(res, set(['a', 'ariel']))