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)
Beispiel #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)
 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)
    def test_ListTZsCached(self):

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