コード例 #1
0
 def test_aslready_template(self):
     assert astemplate(astemplate('You are ${name}')).substitute(
         name='John') == 'You are John'
コード例 #2
0
 def test_nonstring(self):
     astemplate(55)
コード例 #3
0
 def test_fine(self):
     assert hasattr(astemplate('You are ${name}'), 'substitute')
     assert astemplate('You are ${name}').substitute(
         name='John') == 'You are John'
コード例 #4
0
ファイル: test_converters.py プロジェクト: TurboGears/tg2
 def test_aslready_template(self):
     assert astemplate(astemplate('You are ${name}')).substitute(name='John') == 'You are John'
コード例 #5
0
ファイル: test_converters.py プロジェクト: TurboGears/tg2
 def test_nonstring(self):
     astemplate(55)
コード例 #6
0
ファイル: test_converters.py プロジェクト: TurboGears/tg2
 def test_fine(self):
     assert hasattr(astemplate('You are ${name}'), 'substitute')
     assert astemplate('You are ${name}').substitute(name='John') == 'You are John'