summaryrefslogtreecommitdiff
path: root/test/suite/helper.py
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-12-11 19:32:50 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-12-11 19:32:50 -0500
commit4c26d2324bae1d7030b0142d50dbd2ccf11ddeb6 (patch)
tree2a503b40b20650427eb66039766eb5c9575ce3c7 /test/suite/helper.py
parent9b33b7c46a2672f36b9673d5e4cbc7315bc9ecf4 (diff)
downloadmongo-4c26d2324bae1d7030b0142d50dbd2ccf11ddeb6.tar.gz
Add support for a WT_CURSOR.reconfigure method, reference #1381.
Diffstat (limited to 'test/suite/helper.py')
-rw-r--r--test/suite/helper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/suite/helper.py b/test/suite/helper.py
index 41e0996c21e..14d01a57078 100644
--- a/test/suite/helper.py
+++ b/test/suite/helper.py
@@ -155,7 +155,7 @@ def simple_populate_check(self, uri, rows):
cursor.close()
# Return the value stored in a complex object.
-def value_populate_complex(i):
+def complex_value_populate(cursor, i):
return [str(i) + ': abcdefghijklmnopqrstuvwxyz'[0:i%26],
i,
str(i) + ': abcdefghijklmnopqrstuvwxyz'[0:i%23],
@@ -198,7 +198,7 @@ def complex_populate_type(self, uri, config, rows, type):
cursor = self.session.open_cursor(uri, None)
for i in range(1, rows + 1):
cursor.set_key(key_populate(cursor, i))
- v = value_populate_complex(i)
+ v = complex_value_populate(cursor, i)
cursor.set_value(v[0], v[1], v[2], v[3])
cursor.insert()
cursor.close()
@@ -208,7 +208,7 @@ def complex_populate_check_cursor(self, cursor, rows):
for key, s1, i2, s3, s4 in cursor:
i += 1
self.assertEqual(key, key_populate(cursor, i))
- v = value_populate_complex(i)
+ v = complex_value_populate(cursor, i)
self.assertEqual(s1, v[0])
self.assertEqual(i2, v[1])
self.assertEqual(s3, v[2])