summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2012-05-23 17:36:41 +0200
committerWouter Bolsterlee <uws@xs4all.nl>2012-05-23 17:36:41 +0200
commitb7c2fb2b8b484fe5741741ac0f36ccee904094b5 (patch)
treece41c79bdd138abfd296b40680d6fdbb9e9efb78 /tests
parente84aca22e6f2996bc140bed1448edb546c10975b (diff)
downloadhappybase-b7c2fb2b8b484fe5741741ac0f36ccee904094b5.tar.gz
Avoid limited scannerOpenWithPrefix() Thrift API
Avoid the scannerOpenWithPrefix() Thrift function by implementing the prefix matching logic on the client side, and using scannerOpenWithScan afterwards. The result is that prefix scans now support both 'timestamp' and 'filter' parameters, whereas that raised NotImplementedError before.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_api.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 9b3ea08..28aeca5 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -322,12 +322,6 @@ def test_scan():
with assert_raises(TypeError):
list(table.scan(row_start='foobar', row_prefix='foo'))
- with assert_raises(NotImplementedError):
- list(table.scan(row_prefix='foobar', timestamp=1234))
-
- with assert_raises(NotImplementedError):
- list(table.scan(row_prefix='foobar', filter='foobar'))
-
with table.batch() as b:
for i in range(2000):
b.put('row-scan-a%05d' % i,