コード例 #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
ファイル: test_twofactor.py プロジェクト: ESS-LLP/frappe
	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')