def getContent(self): html = StaticPage.getContent(self) performances = PageLink("recordsPerformances", self) winners = PageLink("recordsWinners", self) awards = PageLink("recordsAwards", self) fairplay = PageLink("recordsFairplay", self) answer = html.format(performances=performances, winners=winners, awards=awards, fairplay=fairplay) return answer
def testGetContent(self): page = StaticPage("hello", "statichtml/rules.html", "SEHICL Rules and Playing Conditions") result = page.getContent() self.assertNotEqual(None, result)