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