Example #1
0
	def testDateLangParam(self):
		local = static.rewrite('test.shtml?lang=de&year=2007&month=12&day=1&bla=123', 'test.shtml$lang$date')
		self.assertEqual(local, 'test.2007-12-01.de.html')
Example #2
0
	def testRewriteCropParam(self):
		local = static.rewrite('test.shtml?bla=xxx&test=123', 'test.shtml')
		self.assertEqual(local, 'test.html')
Example #3
0
	def testLangParam(self):
		local = static.rewrite('test.shtml?lang=de&bla=123', 'test.shtml$lang')
		self.assertEqual(local, 'test.de.html')
Example #4
0
	def testRewriteSimple(self):
		local = static.rewrite('test.shtml', 'test.shtml')
		self.assertEqual(local, 'test.html')