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)
Ejemplo n.º 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)
Ejemplo n.º 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)