'Helper method to test the way parens are wrapped.'

def _each_parens(self, with_parens, math, parens, tall=False):

    obj = preview.LatexRendered(math, parens=parens, tall=tall)
    self.assertEquals(obj.latex, with_parens)
    self.assertEquals(obj.sans_parens, math)
    self.assertEquals(obj.tall, tall)
