コード例 #1
0
 def test_ListTZsCached(self):
     
     results = listTZs()
     results = listTZs()
     self.assertTrue("America/New_York" in results)
     self.assertTrue("Europe/London" in results)
     self.assertTrue("GB" in results)
コード例 #2
0
    def doPOSTList(self, request):
        """
        Return a list of all timezones known to the server.
        """

        tzids = listTZs()
        tzids.sort()
        result = customxml.TZIDs(*[customxml.TZID(tzid) for tzid in tzids])
        return XMLResponse(responsecode.OK, result)
コード例 #3
0
 def doPOSTList(self, request):
     """
     Return a list of all timezones known to the server.
     """
     
     tzids = listTZs()
     tzids.sort()
     result = customxml.TZIDs(*[customxml.TZID(tzid) for tzid in tzids])
     return XMLResponse(responsecode.OK, result)
コード例 #4
0
    def test_ListTZsCached(self):

        results = listTZs()
        self.assertTrue("America/New_York" in results)
        self.assertTrue("Europe/London" in results)
        self.assertTrue("GB" in results)