Пример #1
0
 def test_delete_readd_without_close(self):
     cal = Calendar(CAL_TITLE, CAL_URL, self.__last_update, CAL_TZ)
     mgr = TestCache(db=TEST_DB_FILE)
     mgr.save(cal)
     mgr.delete(cal.url)
     mgr.save(cal)
Пример #2
0
 def test_delete(self):
     cal = Calendar(CAL_TITLE, CAL_URL, self.__last_update, CAL_TZ)
     mgr = TestCache(db=TEST_DB_FILE)
     mgr.save(cal)
     mgr.delete(cal.url)
     self.assertEqual(0, len(mgr.load_all()))