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')
def testRewriteCropParam(self): local = static.rewrite('test.shtml?bla=xxx&test=123', 'test.shtml') self.assertEqual(local, 'test.html')
def testLangParam(self): local = static.rewrite('test.shtml?lang=de&bla=123', 'test.shtml$lang') self.assertEqual(local, 'test.de.html')
def testRewriteSimple(self): local = static.rewrite('test.shtml', 'test.shtml') self.assertEqual(local, 'test.html')