Revision: 6996c9251137
Author:   paul cannon <[email protected]>
Date:     Thu Dec 15 11:51:25 2011
Log:      fix test_truncate_columnfamily

in order not to depend on fake-empty-row behavior, as caused by
CASSANDRA-3424 and reported by CASSANDRA-3505, since it's not yet
determined whether it will change. shouldn't matter here anyway.

Fixes issue-12.

http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/source/detail?r=6996c9251137

Modified:
 /test/test_cql.py

=======================================
--- /test/test_cql.py   Mon Nov  7 13:42:10 2011
+++ /test/test_cql.py   Thu Dec 15 11:51:25 2011
@@ -427,8 +427,10 @@
     def test_truncate_columnfamily(self):
         "truncating a column family"
         cursor = self.cursor
+        cursor.execute("SELECT * FROM StandardString1")
+        assert cursor.rowcount > 0
         cursor.execute('TRUNCATE StandardString1;')
- cursor.execute("SELECT 'cd1' FROM StandardString1 WHERE KEY = 'kd'")
+        cursor.execute("SELECT * FROM StandardString1")
         assert cursor.rowcount == 0

         # truncate against non-existing CF

Reply via email to