def METHOD_NAME(self) :
    for i in xrange(9, 17) :  # From 512 to 65536
        i = 1<<i
        self.db.set_pagesize(i)
        self.assertEqual(i, self.db.get_pagesize())
    # The valid values goes from 512 to 65536
    # Test 131072 bytes...
    self.assertRaises(db.DBInvalidArgError, self.db.set_pagesize, 1<<17)
    # Test 256 bytes...
    self.assertRaises(db.DBInvalidArgError, self.db.set_pagesize, 1<<8)