def test_routing_with_only_basename(self): expected_result = [ r'sophie/default/testbase_.html', r'sophie/default/testbase.html', r'sophie/default/testbase_.html', r'sophie/default/testbase.html' ] tested_result = route_template(self.base) self.assertEqual(tested_result, expected_result)
def test_routing_without_extraname_args(self): expected_result = [ r'sophie/test_slug/testbase_.html', r'sophie/test_slug/testbase.html', r'sophie/default/testbase_.html', r'sophie/default/testbase.html' ] tested_result = route_template(self.base, blog_slug=self.blog) self.assertEqual(tested_result, expected_result)
def test_routing_with_full_args(self): expected_result = [ r'sophie/test_slug/testbase_xxx_yyy.html', r'sophie/test_slug/testbase.html', r'sophie/default/testbase_xxx_yyy.html', r'sophie/default/testbase.html' ] tested_result = route_template(self.base, self.extra, self.blog) self.assertEqual(tested_result, expected_result)