Exemplo n.º 1
0
	def testFindTemplateWithParam(self):
		template = static.findTemplate('/x/y/z/param.shtml?bla=x',mockTemplates)
		self.assertEqual(template,'/path/param.shtml$lang$date')
Exemplo n.º 2
0
	def testFindTemplateNomatch(self):
		template = static.findTemplate('/x/y/z/xx.shtml?bla=x',mockTemplates)
		assert not template
Exemplo n.º 3
0
	def testFindTemplateNoParam(self):
		template = static.findTemplate('/x/y/z/noparam.shtml',mockTemplates)
		self.assertEqual(template,'/noparam.shtml')