Beispiel #1
0
 def testLocalstart(self):
     pref = prefs()
     pref.tzname = "US/Pacific"
     pref.put()
     eq_("US/Pacific", Activity.all()[0].localstart.tzinfo.zone)
Beispiel #2
0
 def testSetTimeZone(self):
     eq_(pytz.utc, prefs().timezone)
     resp = self.app.post("/preferences", {"timezone": "US/Pacific"})
     selected = resp.html.findAll("option", selected="true")
     eq_(1, len(selected))
     eq_("US/Pacific", selected[0].string)