summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2014-02-25 21:08:21 +0100
committerWouter Bolsterlee <uws@xs4all.nl>2014-02-25 21:08:21 +0100
commit106dcf070574c5be9bdeba90c689b09e3fbed71b (patch)
tree5a73f162f4f2fd3c08634dbe8014e1f3a7f323ec /tests
parentda109ab7b3c8a6ede332bc0d99e3e71cbecf5154 (diff)
downloadhappybase-106dcf070574c5be9bdeba90c689b09e3fbed71b.tar.gz
No longer confuse batching/caching; add Table.scan(scan_batching=...)
For details, see the comments added in this commit, and issues #54 and issue #56.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_api.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 2d22717..292ee3f 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -446,6 +446,13 @@ def test_scan_sorting():
row.items())
+def test_scan_filter_and_batch_size():
+ # See issue #54 and #56
+ filter = "SingleColumnValueFilter ('cf1', 'qual1', =, 'binary:val1')"
+ for k, v in table.scan(filter=filter):
+ print v
+
+
def test_delete():
row_key = 'row-test-delete'
data = {'cf1:col1': 'v1',