def test_aslready_template(self): assert astemplate(astemplate('You are ${name}')).substitute( name='John') == 'You are John'
def test_nonstring(self): astemplate(55)
def test_fine(self): assert hasattr(astemplate('You are ${name}'), 'substitute') assert astemplate('You are ${name}').substitute( name='John') == 'You are John'
def test_aslready_template(self): assert astemplate(astemplate('You are ${name}')).substitute(name='John') == 'You are John'
def test_fine(self): assert hasattr(astemplate('You are ${name}'), 'substitute') assert astemplate('You are ${name}').substitute(name='John') == 'You are John'