summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2012-05-24 14:27:55 +0200
committerWouter Bolsterlee <uws@xs4all.nl>2012-05-24 14:27:55 +0200
commit0a213d44b54553249d87a33806772ef5e6d91b58 (patch)
treee7775b7fb7f7a2a68253875e917b146cccf54c2c /tests
parent6a7efd75fcc954046cf978b426dec51b09c5fc56 (diff)
downloadhappybase-0a213d44b54553249d87a33806772ef5e6d91b58.tar.gz
Hit all scanner code paths for 0.90 compatibility tests
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 e090333..de080ce 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -324,6 +324,10 @@ def test_scan():
with assert_raises(ValueError):
list(table.scan(batch_size=None))
+ if connection.compat == '0.90':
+ with assert_raises(NotImplementedError):
+ list(table.scan(filter='foo'))
+
with assert_raises(ValueError):
list(table.scan(limit=0))
@@ -352,6 +356,9 @@ def test_scan():
row_stop='row-scan-a00022')
assert_equal(10, calc_len(scanner))
+ scanner = table.scan(row_start='xyz')
+ assert_equal(0, calc_len(scanner))
+
scanner = table.scan(row_start='xyz', row_stop='zyx')
assert_equal(0, calc_len(scanner))