Example #1
0
 def test_aslready_template(self):
     assert astemplate(astemplate('You are ${name}')).substitute(
         name='John') == 'You are John'
Example #2
0
 def test_nonstring(self):
     astemplate(55)
Example #3
0
 def test_fine(self):
     assert hasattr(astemplate('You are ${name}'), 'substitute')
     assert astemplate('You are ${name}').substitute(
         name='John') == 'You are John'
Example #4
0
 def test_aslready_template(self):
     assert astemplate(astemplate('You are ${name}')).substitute(name='John') == 'You are John'
Example #5
0
 def test_nonstring(self):
     astemplate(55)
Example #6
0
 def test_fine(self):
     assert hasattr(astemplate('You are ${name}'), 'substitute')
     assert astemplate('You are ${name}').substitute(name='John') == 'You are John'