def test_simple_add_plan(self): u = Plan(test_plan_data) u.planID = "UA-P-X" assert u.id is None assert u.rev is None u.store(self.db) assert u.id is not None assert u.rev is not None fromdb = self.db.get(u.id) assert u.planID == fromdb['planID'] assert u.doc_type == "Plan" u.delete_instance(self.db)
def test_simple_add_plan(self): u = Plan(test_plan_data) u.planID = "UA-P-X" assert u.id is None assert u.rev is None u.store(self.db) assert u.id is not None assert u.rev is not None fromdb = self.db.get(u.id) assert u.planID == fromdb["planID"] assert u.doc_type == "Plan" u.delete_instance(self.db)