datatracker/ietf/iesg/tests.py

13 lines
342 B
Python

from ietf.utils.test_utils import SimpleUrlTestCase, canonicalize_feed
class IesgUrlTestCase(SimpleUrlTestCase):
def testUrls(self):
self.doTestUrls(__file__)
def doCanonicalize(self, url, content):
if url.startswith("/feed/"):
return canonicalize_feed(content)
else:
return content