示例#1
0
 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
示例#2
0
 def testGetContent(self):
     page = StaticPage("hello", "statichtml/rules.html",
                       "SEHICL Rules and Playing Conditions")
     result = page.getContent()
     self.assertNotEqual(None, result)