Esempio n. 1
0
 def test_processor(self):
     t = cubictemp._Block("dummyproc", 0, self.s, {})
     t.append(cubictemp._Text("foo"))
     assert t.render(dummyproc=dummyproc) == "::foo::"
Esempio n. 2
0
 def test_render(self):
     t = cubictemp._Text("foo")
     assert t.render() == "foo"
Esempio n. 3
0
 def test_render(self):
     t = cubictemp._Block(None, 0, self.s, {})
     t.append(cubictemp._Text("bar"))
     assert t.render() == "bar"
Esempio n. 4
0
 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"
Esempio n. 5
0
 def test_processor(self):
     t = cubictemp._Block("dummyproc", 0, self.s, {})
     t.append(cubictemp._Text("foo"))
     assert t.render(dummyproc=dummyproc) == "::foo::"
Esempio n. 6
0
 def test_render(self):
     t = cubictemp._Block(None, 0, self.s, {})
     t.append(cubictemp._Text("bar"))
     assert t.render() == "bar"
Esempio n. 7
0
 def test_render(self):
     t = cubictemp._Text("foo")
     assert t.render() == "foo"
Esempio n. 8
0
 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"