def test_processor(self): t = cubictemp._Block("dummyproc", 0, self.s, {}) t.append(cubictemp._Text("foo")) assert t.render(dummyproc=dummyproc) == "::foo::"
def test_render(self): t = cubictemp._Block(None, 0, self.s, {}) t.append(cubictemp._Text("bar")) assert t.render() == "bar"
def test_block(self): e = cubictemp._Expression("foo", "@", 0, self.s, {}) t = cubictemp._Block(None, 0, self.s, {}) t.append(cubictemp._Text("bar")) assert e.render(foo=t) == "bar"