def METHOD_NAME(self):
    with open(TESTFN, 'w') as f:
        f.write('hello world #2')
    t = pipes.Template()
    t.append(s_command + ' < $IN > $OUT', pipes.FILEIN_FILEOUT)
    t.copy(TESTFN, TESTFN2)
    with open(TESTFN2) as f:
        self.assertEqual(f.read(), 'HELLO WORLD #2')