summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2012-05-23 18:02:05 +0200
committerWouter Bolsterlee <uws@xs4all.nl>2012-05-23 18:02:05 +0200
commitd9f0a59a661ba7c8e304c1f766fa6b30e6bd96dc (patch)
tree84f519b29cd8b48169928afa985e1de335126e5e /tests
parent4bb750cf705862781d6f6a32ae02d76bc3c2f21c (diff)
downloadhappybase-d9f0a59a661ba7c8e304c1f766fa6b30e6bd96dc.tar.gz
Initial steps for HBase/Thrift compatibility modes
Diffstat (limited to 'tests')
-rw-r--r--tests/test_api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 28aeca5..5519728 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -50,6 +50,10 @@ def teardown_module():
connection.close()
+def test_connection_compat():
+ with assert_raises(ValueError):
+ happybase.Connection(compat='0.1.invalid.version')
+
def test_enabling():
assert_true(connection.is_table_enabled(TEST_TABLE_NAME))
connection.disable_table(TEST_TABLE_NAME)