Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
update test and README.mkd to reflect new super column behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jhseu committed Jan 13, 2010
1 parent f14aec1 commit 32a16c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.mkd
Expand Up @@ -200,7 +200,7 @@ To use SuperColumns, pass super=True to the ColumnFamily constructor.
>>> cf.multiget(['key1'], super_column='2')
{'key1': {'sub3': 'val3', 'sub4': 'val4'}}
>>> list(cf.get_range(super_column='2'))
[('key1', {'2': {'sub3': 'val3', 'sub4': 'val4'}})]
[('key1', {'sub3': 'val3', 'sub4': 'val4'})]

These output values retain the same format as given by the Cassandra thrift interface.

Expand Down
2 changes: 1 addition & 1 deletion tests/test_columnfamily.py
Expand Up @@ -147,4 +147,4 @@ def test_super_column_argument(self):
assert self.cf.get(key, super_column='1') == sub12
assert_raises(NotFoundException, self.cf.get, key, super_column='3')
assert self.cf.multiget([key], super_column='1') == {key: sub12}
assert list(self.cf.get_range(start=key, finish=key, super_column='1')) == [(key, {'1': sub12})]
assert list(self.cf.get_range(start=key, finish=key, super_column='1')) == [(key, sub12)]

0 comments on commit 32a16c4

Please sign in to comment.