def METHOD_NAME(self):
    # check calling open('r') on a pipe ending with
    # a sink raises ValueError
    t = pipes.Template()
    t.append('boguscmd', pipes.SINK)
    self.assertRaises(ValueError, t.open, 'bogusfile', 'r')