def METHOD_NAME(self):
    # write through empty pipe
    d = 'empty pipeline test WRITE'
    t = pipes.Template()
    with t.open(TESTFN, 'w') as f:
        f.write(d)
    with open(TESTFN) as f:
        self.assertEqual(f.read(), d)