def insert_doc(self): payload = _couch.get_random_payload() doc = {'payload': payload} self.db.save(doc)
def insert_doc(): global db payload = _couch.get_random_payload() doc = {'payload': payload} db.save(doc)
def insert_doc(self): payload = _couch.get_random_payload() doc = {'payload': payload} return self.db.saveDoc('couch-benchmarks', doc)