def METHOD_NAME(self):
    dbenv = db.DBEnv()
    dbenv.open(self.homeDir,
               db.DB_INIT_CDB| db.DB_CREATE |db.DB_THREAD|db.DB_INIT_MPOOL,
               0666)
    d = db.DB(dbenv)
    d.open(self.filename, db.DB_BTREE, db.DB_CREATE | db.DB_THREAD, 0666)
    d.put("test","this is a test")
    d.put("test2","another test")
    d.put("test3","another one")
    self.assertEqual(d.get("test"), "this is a test", "put!=get")
    c=d.cursor()
    c.first()
    c.next()
    d.close()  # This "close" should close the child db handle also
 # db.close should close the child cursor
    self.assertRaises(db.DBError,c.next)
    d = db.DB(dbenv)
    d.open(self.filename, db.DB_BTREE, db.DB_CREATE | db.DB_THREAD, 0666)
    c=d.cursor()
    c.first()
    c.next()
    dbenv.close()