示例#1
0
 def test_render_string_template(self):
     '''String template renders as expected with variables.'''
     args = {'issuer_name': 'Frappe Technologies'}
     _str = 'Verification Code from {{issuer_name}}'
     _str = render_string_template(_str, args)
     self.assertEqual(_str, 'Verification Code from Frappe Technologies')
示例#2
0
	def test_render_string_template(self):
		'''String template renders as expected with variables.'''
		args = {'issuer_name':'Frappe Technologies'}
		_str = 'Verification Code from {{issuer_name}}'
		_str = render_string_template(_str,args)
		self.assertEqual(_str,'Verification Code from Frappe Technologies')