def METHOD_NAME(self):
    if shutil.which('tr') is None:
        self.skipTest('tr is not available')
    with open(TESTFN, 'w') as f:
        f.write('hello world #2')
    t = pipes.Template()
    t.append(s_command + ' < $IN', pipes.FILEIN_STDOUT)
    f = t.open(TESTFN, 'r')
    try:
        self.assertEqual(f.read(), 'HELLO WORLD #2')
    finally:
        f.close()