示例#1
0
文件: test_pages.py 项目: groves/tic
 def tearDown(self):
     self.data.teardown()
     for a in Activity.all():
         a.delete()
     for p in UserPrefs.all():
         p.delete()
示例#2
0
文件: test_pages.py 项目: groves/tic
 def testAgain(self):
     response = self.app.post("/activity/again", {'key': self.key})
     response.mustcontain("true", self.act.name)
     assert Activity.all().filter("user ="******"name =", self.act.name).count() == 3
示例#3
0
文件: test_pages.py 项目: groves/tic
 def testLocalstart(self):
     pref = prefs()
     pref.tzname = "US/Pacific"
     pref.put()
     eq_("US/Pacific", Activity.all()[0].localstart.tzinfo.zone)