You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ee...@apache.org on 2010/02/20 05:09:34 UTC

svn commit: r912075 - /incubator/cassandra/trunk/test/system/test_avro_server.py

Author: eevans
Date: Sat Feb 20 04:09:33 2010
New Revision: 912075

URL: http://svn.apache.org/viewvc?rev=912075&view=rev
Log:
avro functional test for get_api_version rpc

Patch by eevans

Modified:
    incubator/cassandra/trunk/test/system/test_avro_server.py

Modified: incubator/cassandra/trunk/test/system/test_avro_server.py
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/system/test_avro_server.py?rev=912075&r1=912074&r2=912075&view=diff
==============================================================================
--- incubator/cassandra/trunk/test/system/test_avro_server.py (original)
+++ incubator/cassandra/trunk/test/system/test_avro_server.py Sat Feb 20 04:09:33 2010
@@ -18,6 +18,7 @@
 
 class TestMutations(AvroTester):
     def test_insert_and_get(self):
+        "setting and getting a column"
         params = dict()
         params['keyspace'] = 'Keyspace1'
         params['key'] = 'key1'
@@ -40,5 +41,11 @@
                 and response['column'].has_key('name')
         assert response['column']['name'] == 'c1'
         assert response['column']['value'] == 'v1'
-        
+
+    def test_get_api_version(self):
+        "getting the remote api version string"
+        client = get_avro_client()
+        vers = client.request('get_api_version', {})
+        assert isinstance(vers, (str,unicode)) and len(vers.split('.')) == 3
+
 # vi:ai sw=4 ts=4 tw=0 et